Create a dictionary in which the meaning of a word is shown after user input
word = input("Enter the word to know its meaning: ")
mydict = {
"geek": "enthusiast",
"gloomy": "sad",
"mob": "crowd",
"infinity": "unlimited",
"dementia": "memory loss",
"pensive": "thoughtful",
"sibling": "brother or sister"
}
print(f"THe moeaning of {word} is {mydict[word]}")
Comments
Post a Comment
Write something to CodeWithAbdur!