title: Can't understand value error try
body: <p>Can someone please explain how this code is working for me?
  I don't understand it from the try command down.
  This while loop is working for me. However I do not understand how all of it works.</p>
  
  <pre><code>price = 110 #this i get
  ttt = 1 #this i get
  
  while price&lt; 0 or price&gt; 100: #this i get
      if ttt &gt;=2: #this i get
          print "This is an invalid entry" #this i get
          print "Please enter a number between 0 and 100" #this i get
      try: #From here i do not understand , but without it, it does not work
            price= int(raw_input("Please enter the price : "))
      except ValueError:
        price = -1   
      ttt +=1
  </code></pre>
  
  <p>As I'm a learner I don't really want a more complicated way to do it.
  I just want to fully understand what's happening in the loop.</p>