Back to Python Errors
Python Exception

TypeError

Unsupported operand type

What does this error mean?

Occurs when performing an operation on incompatible data types.

How to fix TypeError?

Convert types using int(), str(), etc. Check data types before operations.

Example
'5' + 3 # TypeError: can only concatenate str (not "int") to str