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))

Output:









Download Source Code

Comments

Popular posts from this blog

Write A Python Program, Create n Empty Dictionary Allow 4 Friends To, Enter Their Favorite Programming Language As values and User Keys as their Name Assume That The Names Are Unique.

Write Python Program To Store Seven Fruits Name In a List Enter By The User