Advertisement
HBSB

2.10 This AND that OR the other

Jan 3rd, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. phrase = input("Talk to me >")
  2. if phrase == "hi" or phrase == "hey":
  3.   print("hello")
  4. elif phrase == "What's your name?" or phrase == "whats your name":
  5.   print ("Lorna")
  6. else:
  7.   print("Sorry, I don't understand this.")
  8. print("Bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement