title: Check Length of user input
body: <p>Im trying to check the length of the string entered by the user and if its &lt; 5 it goes through however no matter what length it still goes through my try except statement</p>
  
  <p>print """
  Please put in the Stock symbol for the Company 
  whose last closing stock price you wish to see."""</p>
  
  <pre><code>while True:
     symbol = raw_input("Enter Stock Symbol: ")
     try:
        len(symbol) &lt; 5
        break
  
     except ValueError:
        print 'Greater than 4 characters, Try again'
  
  print 'Great your stock symbol is less than 5'
  </code></pre>