Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unsupported operand type
#6
so the error is now isolated to (your) line 6
The return statement
return 8*x2 - 8*x1
but you're not showing what's in x2 or x1, and one of those is equal to None!
Reply


Messages In This Thread
unsupported operand type - by newgate - Mar-19-2018, 09:40 AM
RE: unsupported operand type - by Larz60+ - Mar-19-2018, 10:58 AM
RE: unsupported operand type - by newgate - Mar-19-2018, 05:30 PM
RE: unsupported operand type - by Larz60+ - Mar-19-2018, 10:10 PM
RE: unsupported operand type - by newgate - Mar-20-2018, 08:09 AM
RE: unsupported operand type - by Larz60+ - Mar-20-2018, 10:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Type Error: Unsupported Operand jhancock 2 1,208 Jul-22-2023, 11:33 PM
Last Post: jhancock
  TypeError: unsupported operand type(s) for +: 'dict' and 'int' nick12341234 1 9,335 Jul-15-2022, 04:04 AM
Last Post: ndc85430
  TypeError: unsupported opperand type(s) for %: 'int' and 'list' cool_person 7 2,177 May-07-2022, 08:40 AM
Last Post: ibreeden
  unsupported operand type(s) for %: 'list' and 'int' RandomCoder 4 32,896 May-07-2022, 08:07 AM
Last Post: menator01
  unsupported operand type(s) for /: 'str' and 'int' Error for boxplot soft 1 3,072 Feb-09-2021, 05:40 PM
Last Post: soft
  calculate_bai -- TypeError: unsupported operand type(s) for *: 'float' and 'NoneType' pantherd 1 3,265 Apr-21-2020, 12:31 PM
Last Post: anbu23
  Type hinting - return type based on parameter micseydel 2 2,506 Jan-14-2020, 01:20 AM
Last Post: micseydel
  Need help with "unsupported operand type(s)" _dave 6 5,384 Oct-14-2019, 06:43 AM
Last Post: buran
  TypeError: unsupported operand type(s) for -: 'str' and 'str' Balaji 4 10,108 Oct-11-2019, 10:29 AM
Last Post: buran
  TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str' findbikash 2 9,628 Sep-18-2019, 08:32 AM
Last Post: buran

Forum Jump:

User Panel Messages

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