Advertisement
suewalters

Week 2 - 2.8 Discussion

Apr 25th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. phrase=input("Talk to me > ")
  2. if phrase =="hi":
  3. print("hello")
  4. elif phrase =="What is your name":
  5. print("Marvin")
  6. else:
  7. print("I am sorry. I do not understand: '"+phrase+"'")
  8. print("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement