Posted on 23rd July 2024|21 views
Why do we get the TypeError: unsupported operand type(s)?
Posted on 23rd July 2024| views
You see this error because you may be operating any operation that you needed to do on the integer, but the variables are a string
Let us see an example:
a=’4’
b=’2’
a-b
The ‘a-b’ line will throw this error because ‘-’ operation is not supported upon strings.