I\'m trying to take a raw input and detect whether it is in a range. Here\'s my code.
def gold_room(): print \"This room is full of gold. How much
Using try .. except will allow you to make sure entered value is an int. # raise is a place holder for your handling a non-int contition:
# raise
try: next = int(raw_input("> ")) except ValueError: # raise if not 0 <= next <= 50: print 'Too greedy'