Skip to content

Instantly share code, notes, and snippets.

View HanaanY's full-sized avatar

Hanaan Yousaf HanaanY

  • Manchester, United Kingdom
View GitHub Profile
# with study drill done that debugs the number entry for gold
from sys import exit
def gold_room():
print "This room is full of gold. How much do you take?"
while True:
try:
choice = raw_input("> ")
how_much = int(choice)