Exercise about dictionary
# Exercise:
# Make a dictionary in which you add three letters
# meaning and the user input one of them and able
# to see the detail about the word he entered
print("welcome to our dictionary...".title())
dic = {
"Humbel":"having or showing a modest or low estimate of one\'s importance",
"colonel":"""an army officer of high rank, in particular (in the US Army,
Air Force, and Marine Corps) an officer above a lieutenant colonel and below
a brigadier general.""",
"Enormity":"""the great or extreme scale, seriousness, or extent of something
perceived as bad or morally wrong."""
}
word=str(input("Enter a word: "))
print(dic[word])
Comments
Post a Comment