I am creating a practice program that displays the name of a character along with his age. For some reason, whenever I store the character's age without putting quotes around it, it will not print.
I saw in a video that when storing numbers as a variable, you do not need to put quotes around it. Can you guys please examine my code to let me know what I need to change or add.
character_name = "Tyrone"
character_age = 22
print("There was once a man named " + character_name + ",")
print("he was " + character_age + " years old.")
print("He really liked the name " + character_name + ",")
print("but didn't like being " + character_age + ".")
TypeError: can only concatenate str (not "int") to str