Dictionary and its functions
Dictionary and its functions
# Dictionary & It's Functions
dt = {
"event": "annual function",
"author": "ngoyp",
"subject": "pollution",
"standad": "8",
"year": "tewnty one"
}
#print(dt.get("author"))
"""dt.update("rank" "first")
print(dt)
"""
#Exercise 1 :
d2 = {"see":"watch",
"laugh":"mock",
"tough":"hard",
"know":"inquire",
"happy":"joy"}
ipt = input()
print(ipt + " meaning is :" +d2[ipt])
Comments
Post a Comment