what is type error? how to clear that? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is type error? how to clear that?

ex:Traceback (most recent call last): File "./Playground/file0.py", line 1, in <module> print(-7 + 2) + (-4) TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

28th Apr 2020, 5:58 AM
ks balaji
ks balaji - avatar
1 Answer
0
You make a subtraction of -4 on the print instead of inside the print
28th Apr 2020, 6:01 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar