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
The test "next == int in range(50)" evaluates to "(next == int) and (int in range(50))" which is fairly meaningless and always equates to false.
Instead you could try
try: how_much = int(next) if not (0<=how_much<50): print 'Too greedy' except ValueError: dead("Man, learn how to type a number.")