Apr-27-2020, 10:13 AM
Use paranthesis in calculation. [] operator is used for list
for a in range(1, 5): for b in range(0+(a*2)-2,2*a): print(b)
unsupported operandtype(s) for -: 'list' and 'int'
|
|
Messages In This Thread |
unsupported operandtype(s) for -: 'list' and 'int' - by Lakkad - Apr-27-2020, 10:02 AM
RE: unsupported operandtype(s) for -: 'list' and 'int' - by anbu23 - Apr-27-2020, 10:13 AM
RE: unsupported operandtype(s) for -: 'list' and 'int' - by pyzyx3qwerty - Apr-27-2020, 10:16 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
TypeError: unsupported opperand type(s) for %: 'int' and 'list' | cool_person | 7 | 2,257 |
May-07-2022, 08:40 AM Last Post: ibreeden |
|
unsupported operand type(s) for %: 'list' and 'int' | RandomCoder | 4 | 32,954 |
May-07-2022, 08:07 AM Last Post: menator01 |
|
please help me TypeError: unsupported operand type(s) for +=: 'int' and 'list' | aankrose | 2 | 7,264 |
Mar-26-2019, 06:00 PM Last Post: perfringo |