Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a={"come stai":"bene grazie","quanti anni hai":"3 anni","dove abiti":"milano"}
- b=" "
- while len(b) != 0:
- b=input("chiedimi qualcosa: ")
- if a.has_key(b):
- print (a[b])
- else:
- c=input("non capisco. Cosa devo rispondere alla domanda "+b+"? ")
- a[b]=c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement