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

Popular posts from this blog

Quotation marks to wrap an element in HTML

What is the difference between iostream and iostream.h in cpp?

The Basic Structure of a Full-Stack Web App