Advertisement
Guest User

Untitled

a guest
Jan 31st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def gold_room():
  2.     print("This room is full of gold. How much do you take?")
  3.    
  4.     choice = input("> ")
  5.     if "0" in choice or "1" in choice:
  6.         how_much = int(choice)
  7.     else:
  8.         dead("Man, learn to type a number")
  9.        
  10.     if how_much < 50:
  11.         print("Nice, your not greedy, you win!")
  12.         exit(0)
  13.     else:
  14.         dead("You greedy bastard!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement