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


Messages In This Thread
problem with ‘>’ (i.e. greater than) sign - by AOCL1234 - Jun-30-2020, 09:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A sign-Reversal Puzzle HY2000 2 2,479 Dec-05-2019, 11:55 AM
Last Post: HY2000
  Find 'greater than' items in list johneven 2 4,469 Apr-05-2019, 07:22 AM
Last Post: perfringo
  times greater number than the previous rhai 4 3,447 Oct-08-2018, 03:27 AM
Last Post: woooee
  Making a calculator with just the + sign gerardmanken 1 2,855 Feb-01-2018, 03:18 PM
Last Post: buran
  User sign up and login system tesilstudent112 1 5,074 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