problem with ‘>’ (i.e. greater than) sign - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: problem with ‘>’ (i.e. greater than) sign (/thread-28002.html) |
problem with ‘>’ (i.e. greater than) sign - AOCL1234 - Jun-30-2020 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 syntaxAny suggestions? RE: problem with ‘>’ (i.e. greater than) sign - stullis - Jun-30-2020 Why is "ArithmeticError" in there? Post the full traceback for more context. RE: problem with ‘>’ (i.e. greater than) sign - Yoriz - Jun-30-2020 why do you have greater than ArithmeticError with space after it and then a value of 15
|