import traceback
s = 'python'
n = 12
try:
n = n + s
print(n)
except Exception as e:
traceback.print_exc()
'''
run:
Traceback (most recent call last):
File "jdoodle.py", line 7, in <module>
n = n + s
TypeError: unsupported operand type(s) for +: 'int' and 'str'
'''