3 ms·
How about something like this >>> print(str(x) + y) "12" >>> print(x + int(y)) 3 >>> print (x+y) Traceback (most recent call last):
by SixSigma 12y ago
How about something like this
>>> print(str(x) + y)
"12"
>>> print(x + int(y))
3
>>> print (x+y)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'int' and 'str'
That's already Python