hi,
i was reading this code
Can you try to Run this code first & if it works in right way(Working properly) please explain to me it !!!
from sys import exit
def gold_room():
print "This room is full of gold. How much do you take?"
choice = raw_input("> ") #ask the user !
if "0" in choice or "1" in choice:
how_much = int(choice)
else:
dead("Man, learn to type a number.")
if how_much < 50:
print "Nice, you're not greedy, you win!"
exit(0)
else:
dead("You greedy bastard!")
def dead(why):
print why, "Good job!"
exit(0)
gold_room()
Thanks