title: Python Traceback Error: Invalid Literal for int() with base 10
body: <p>I read the answers to the Python questions on traceback errors, alas I don't understand the answers provided.  When I run the below code I get a traceback error if the  user enters nothing. How can I avoid it? Please give only specific and short answers. Thanks!</p>
  
  <p><code>Error: Python Traceback Error: Invalid Literal for int() with base 10</code></p>
  
  <pre><code>def gold_room():
      print "This room is full of gold. How much do you take?"
  
      next = (raw_input("&gt;&gt;&gt; "))
      how_much = int(next)
  
      if how_much &lt; 50: 
          print "Nice, you're not greedy, you win!"
          exit(0)
  
      elif how_much &gt; 50:
          print "You greedy bastard!"
          exit(0)
      else: 
          dead("Man, learn to type!")
  </code></pre>