Advertisement
Guest User

Untitled

a guest
May 19th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. a={"come stai":"bene grazie","quanti anni hai":"3 anni","dove abiti":"milano"}
  2. b=" "
  3. while len(b) != 0:
  4. b=input("chiedimi qualcosa: ")
  5. if a.has_key(b):
  6. print (a[b])
  7. else:
  8. c=input("non capisco. Cosa devo rispondere alla domanda "+b+"? ")
  9. a[b]=c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement