Skip to content

Commit 8a50279

Browse files
added word meaning checker
1 parent 08b7bdd commit 8a50279

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Word_meaning/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Get the meaning of a english word with this script
2+
3+
This Script will give you the meaning of an english word.
4+
5+
# How to use it.
6+
7+
`python3 word_meaning.py`
8+
9+
It will ask word for which you want to know the meaning.
10+
11+
1.) Enter The word.
12+
13+
2.) Outputting the meaning of the word.

Word_meaning/meaning.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from PyDictionary import PyDictionary
2+
3+
4+
def get_meaning(word):
5+
dictionary = PyDictionary()
6+
return dictionary.meaning(word)
7+
8+
9+
if __name__ == "__main__":
10+
word = input("Please enter the word: ")
11+
print("Word Meaning : " + str(get_meaning(word)))

0 commit comments

Comments
 (0)