Question 3
Write a program which sores a name, surname and age, and prints message: [name] [surname] is [age] years old.
Code:
# Store Name name = "John" # Store Surname surname = "Smith" # Store Age age = "32" # Print out the sentence print(name, " ", surname, " is", age, " years old.")
Output:
John Smith is 32 years old.