Write A Program In Python To Create A dictionary Of Hindi/Odia Words With Values as Their English Meaning.
Write A Program In Python To Create A dictionary Of Hindi/Odia Words With Values as Their English Meaning, Provide the User With An Option To Look it up.
Code :
dictionary = {
"chasama" : "glass",
"kalama" : "pen",
"kagaj" : "paper",
"khata" : "note"
}
print("Option Are : " , dictionary.keys())
a = input("Enter the odia/Hindi word : \n")
print("English meaning is :", dictionary[a])
# OR
print("English meaning is :", dictionary.get(a))
Comments
Post a Comment