Error
Traceback (most recent call last):
File "C:\Users\Alex\Python\Lesson01.py", line 5, in <module>
print("In 10 years you will be ", a+b, "years old")
TypeError: can only concatenate str (not "int") to str
At the moment I am Learning Python 3 and got this error. What does it mean? I also tried +
instead of the comma this is also not working :/
Here is the code:
user_input = input("How old are you?\n-> ")
a = user_input
b = 10
print("In 10 years you will be ", a+b, "years old")