Advertisement
xavicano

Untitled

Sep 29th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. phrase = input("Talk to me > ")
  2. if phrase == "hi" or phrase=="hey" :
  3.   print("hello")
  4.   phrase2 = input("What's your name?")
  5. elif phrase=="hola":
  6.   print("hello, do you speak catalan?")
  7.   phrase2 = input("Quin és to nom? ")
  8. elif phrase=="ciao":
  9.   print("hello, do you speak italian?")
  10.   phrase2 = input("Comme te chiama? ")  
  11. elif phrase=="whats your name" or phrase=="what\'s your name":
  12.   print("Marvin")
  13. else:
  14.   print("sorry I dont understand this ","\'", phrase,"\'")
  15.   print("bye")
  16. print("It has been a pleasure ", phrase2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement