Computer Science, asked by rishunirala, 7 months ago

Write a program that accepts a user's name and his /her age and prints them with a proper message.

Answers

Answered by samarthkrv
0

Answer:

name = input("What is your name? \n")

age = int(input("What is your age? \n"))

print("Hello" , name , "your age is" , age , "years and you were born in" , (2021-age))

Explanation:

sample output-

What is your name?  

sam

What is your age?  

18

Hello sam your age is 18 years and you were born in 2003

Similar questions