Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phrase = input("Talk to me > ")
- if phrase == "hi":
- print("hello")
- elif phrase == "whats your name":
- print("Marvin")
- else:
- print("Sorry I don't understand " + "'" + phrase + "'")
- print("bye")
- Talk to me > jack
- Sorry I don't understand 'jack'
- bye
- >>>
Advertisement
Add Comment
Please, Sign In to add comment