Advertisement
PhilipCorcoran1981

Ifs

Oct 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. phase = input("Talk to me > ")
  2. if phase == "hi":
  3.   print("hello")
  4. elif phase == "whats your name":
  5.   print("Bob the bot")
  6. else:
  7.   print("sorry I dont understand '"+phase+"'")
  8.   print("Sorry")
  9. print("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement