Python Forum
problem with ‘>’ (i.e. greater than) sign
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with ‘>’ (i.e. greater than) sign
#1
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?
Reply
#2
Why is "ArithmeticError" in there? Post the full traceback for more context.
Reply
#3
why do you have greater than ArithmeticError with space after it and then a value of 15
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  A sign-Reversal Puzzle HY2000 2 2,434 Dec-05-2019, 11:55 AM
Last Post: HY2000
  Find 'greater than' items in list johneven 2 4,428 Apr-05-2019, 07:22 AM
Last Post: perfringo
  times greater number than the previous rhai 4 3,366 Oct-08-2018, 03:27 AM
Last Post: woooee
  Making a calculator with just the + sign gerardmanken 1 2,825 Feb-01-2018, 03:18 PM
Last Post: buran
  User sign up and login system tesilstudent112 1 5,050 Oct-22-2017, 10:14 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020