Skip to content

Commit 09595fa

Browse files
authored
Merge pull request #329 from Mukulbaid63/Dict
Terminal Dictionary ADDED
2 parents 4384945 + 939307e commit 09595fa

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

Python/Terminal_Dictionary/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Terminal Dictionary
2+
- This script is made in python, which shows the multiple meanings of the input word.
3+
![Image](img.jpeg)
4+
5+
## Requirements:
6+
pip install PyDictionary
7+
8+
- It uses PyDictionary library.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#import requried Libraries
2+
from PyDictionary import PyDictionary
3+
4+
#creating an object
5+
dictionary=PyDictionary()
6+
7+
#input
8+
print("Enter the word")
9+
word=input()
10+
11+
#creating an empty dictionary
12+
search=dict()
13+
14+
#search
15+
search=dictionary.meaning(word)
16+
result=list(search.values())[0]
17+
18+
#print the output
19+
print('Meaning of ',word,'is:')
20+
for meaning in result:
21+
print("*" ,meaning)

Python/Terminal_Dictionary/img.jpeg

127 KB
Loading

0 commit comments

Comments
 (0)