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