title: Getting an Integer Input in a Range
body: <p>I'm trying to take a raw input and detect whether it is in a range.<br>
  Here's my code.  </p>
  
  <pre><code>def gold_room():
      print "This room is full of gold. How much do you take?"
  
      next = raw_input("&gt; ")
      if next == int in range(50):
          how_much = int(next)
      else:
          dead("Man, learn how to type a number.")
  
      if how_much &lt; 50:
          print "Nice, you're not greedy, you win!"
          exit(0)
      else:
          dead("You greedy bastard!")
  </code></pre>
  
  <p>When I enter a number it gives me the else: "Man, learn how to type a number."<br>
  I guess the line that isn't working is "if next == int in range(50):<br>
  Could anyone help me out?<br>
  Thanks in advance!<br>
  Edit:<br>
  I'm a noob so that line was just me ballparking.<br>
  I thought it would check next to see if it was an integer in the range of numbers 0-50.  </p>