I'm getting this TypeError
on the print("I'm "+ ageStr +"years old.")
, on line 4. I've tried f-strings and even str(ageStr) / str(age)
- I'm still getting same error on line 4.
ageStr = "24" #I'm 24 years old.
age = int(ageStr)
print("I'm "+ ageStr +"years old.")
three = "3"
answerYears = age + int(three)
print("The total number of years:" + "answerYears")
answerMonths = answerYears*12
print("In 3 years and 6 months, I'll be " + answerMonths + " months old"