3 ms·
That doesn't explain why, because there's no implicit conversion to int when adding things, eg: >>> s = '12' >>> int(s) 12 >>> s + s '1212'
by kbp 9y ago
That doesn't explain why, because there's no implicit conversion to int when adding things, eg:
>>> s = '12'
>>> int(s)
12
>>> s + s
'1212'