Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions word dictionary.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
from PyDictionary import PyDictionary

dictionary = PyDictionary()
def main():
dictionary = PyDictionary()

input_word = input("Input word you wanna translate: ") #made user input for words

print(dictionary.meaning(input_word[0])) #just show about first sentence

#code for replay again
print("Welcome To Our Word Translate!!")
while True:
word = input("Enter your word: ")
if word == "":
break

print(dictionary.meaning(word))
input_again = input('Wanna Translate ? (y/n) ')
if input_again == 'Y' or input_again == 'y':
main()
else:
break