Jayteepix

Untitled

Oct 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 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("Marvin")
  6. else:
  7. print("Sorry I don't understand " + "'" + phrase + "'")
  8. print("bye")
  9.  
  10.  
  11. Talk to me > jack
  12. Sorry I don't understand 'jack'
  13. bye
  14. >>>
Advertisement
Add Comment
Please, Sign In to add comment