Bottom Page

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?
Quote
#2
Why is "ArithmeticError" in there? Post the full traceback for more context.
Quote
#3
why do you have greater than ArithmeticError with space after it and then a value of 15
Quote

Top Page

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

Forum Jump:


Users browsing this thread: 1 Guest(s)