Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Futurelearn: Python 101 from RPi Foundation - Ifs challenge
- joke = input("What is black, white and red all over? ")
- if joke == "a sunburned penguin":
- print("Oh well done!")
- elif joke == "a second hand newspaper":
- print("Ooh, that's a good one")
- elif joke == "":
- print("Come on, at least try!")
- else:
- print("Sorry, I don't know either!")
Advertisement
Add Comment
Please, Sign In to add comment