my first dictionary

def reply():
choice = input("\ntype another word enter yes or no ")
return choice == "yes"

print("\tWelcome to chetu's Dictionary\n")

while True:


print("\nchoose from below letters please: ")
print("cat,dog,laptop,mobile")
d1 = {"cat":"a cute meme content","dog":"honest",
"laptop":"need of a coder","mobile":"a touch screen machine"}
user1 = input("\nenter your word: ")
print(d1.get(user1))


if not reply():
break

Comments

Popular posts from this blog

first python program

quiz-1

python-HEALTH MANAGER