What is the correct fix?
age = "20" next_year = age + 1
- Change
+ 1to+ "1" - Use
age++ - Wrap age with
int(age) - Remove the quotes around 20 only
A string cannot be added to an int; convert with
Play Problem Solving ▸
int().age = "20" next_year = age + 1
+ 1 to + "1"age++int(age)int().