Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #Filename: cakeordeath.py
- slices = 3
- running = True
- while running:
- response = raw_input("Cake or death? ")
- if response == "Cake" or "cake":
- print "Here is a slice of cake!"
- slices-=1
- if slices==0:
- print "I am oh so sorry, you have eaten all of the cake."
- elif response == "death" or "Death":
- print "You will have all of your skin sliced open so that your insides fall out before being beheaded."
- running=False
- print "Loop over!!"
Add Comment
Please, Sign In to add comment