Python Forum

Full Version: problem with ‘>’ (i.e. greater than) sign
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I enter the following operation, there is a syntax error, apparently due to the 'greater than' sign:

>>> V = set(text1)
>>> long_words = [w for w in V if len(w) >ArithmeticError 15]
SyntaxError: invalid syntax
Any suggestions?
Why is "ArithmeticError" in there? Post the full traceback for more context.
why do you have greater than ArithmeticError with space after it and then a value of 15