write a program that asks the user for name ,the current year and birth year. It calculates the age of the user and displays the output as shown:
Welcome Sarah. You are 21 years old.
Answers
Answered by
1
name = input("Enter your name: ")
age = int(input("Enter your age: "))
print("Welcome " , name , "You are " , age , "years old")
Run in compiler
Similar questions