Guest User

Untitled

a guest
Jun 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #Filename: cakeordeath.py
  3. slices = 3
  4. running = True
  5. while running:
  6.     response = raw_input("Cake or death? ")
  7.     if response == "Cake" or "cake":
  8.             print "Here is a slice of cake!"
  9.             slices-=1
  10.             if slices==0:
  11.                 print "I am oh so sorry, you have eaten all of the cake."
  12.     elif response == "death" or "Death":
  13.         print "You will have all of your skin sliced open so that your insides fall out before being beheaded."
  14.         running=False
  15. print "Loop over!!"
Add Comment
Please, Sign In to add comment