Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phrase = input("Talk to me > ")
- if phrase == "hi" or phrase=="hey" :
- print("hello")
- phrase2 = input("What's your name?")
- elif phrase=="hola":
- print("hello, do you speak catalan?")
- phrase2 = input("Quin és to nom? ")
- elif phrase=="ciao":
- print("hello, do you speak italian?")
- phrase2 = input("Comme te chiama? ")
- elif phrase=="whats your name" or phrase=="what\'s your name":
- print("Marvin")
- else:
- print("sorry I dont understand this ","\'", phrase,"\'")
- print("bye")
- print("It has been a pleasure ", phrase2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement