Using Variables to Display Age in a Formatted Message

Assign to the variable age number 20.

Using the age variable and the print() function print to the console the following text: I am 20 years old.

Output: I am 20 years old.

Solutions

Solution: 1

age = 20
print("I am {} years old.".format(age))