Advertisement
xavicano

Untitled

Sep 29th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. phrase = input("Talk to me > ")
  2. if phrase == "hi" or phrase=="hey":
  3.   print("hello")
  4. elif phrase=="whats your name" or phrase=="what\'s your name":
  5.   print("Marvin")
  6. else:
  7.   print("sorry I dont understand this ","\'", phrase,"\'")
  8.   print("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement