demo_string_format_error.py:
age = 36 txt = "My name is John, I am " + age print(txt)
C:\Users\My Name>python demo_string_format_error.py
Traceback (most recent call last):
File "demo_string_format_error.py", line 2, in <module>
txt = "My name is John, I am " + age
TypeError: must be str, not int