my_age = 18 greeting = "Well hello there, " name = "Tim" greeting_with_name = greeting + name + ", I am (my_age) years old." print(greeting_with_name)
I’m trying to print "Well hello there, Tim, I am 18 years old, but I have no idea how to code my_age inside the quotation marks.
Ofcourse I can make the code look like this
greeting_with_name = greeting + name + "I am " + my_age + " years old."
But there’s no fun in that