Advertisement
omyma

elif

Oct 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. phrase = input("talke 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("Omyma")
  6. else:
  7. print("sorry I don't understand " + "'"+phrase+"'")
  8. print("bye ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement