Advertisement
HBSB

2.8 elif challenge

Jan 3rd, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. phrase=input("Talk to me>")
  2. if phrase=="hi":
  3.   print("hello")
  4. elif phrase == "whats your name":
  5.   print ("Lorna")
  6. else:
  7.   print ("sorry I dont understand " + "tell me again, whats your name")
  8. print("whats next")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement