Advertisement
HBSB

Python 101 If its not that its this 2.7

Dec 2nd, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. phrase = input("Talk to me. >")
  2. if phrase == "hi":
  3.     print ("hello")
  4. elif phrase == "what's your name":
  5.     print("Marvin")
  6. else:
  7.     print ("Sorry, I don't understand you.")
  8. print ("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement