Question: Instructions Python program to greet user with their birth year Prompt the user to enter their name. Prompt the user to enter their age. Calculate
Instructions
Python program to greet user with their birth year
Prompt the user to enter their name.
Prompt the user to enter their age.
Calculate the year the user was born based on their age.
Display a greeting message that includes the user's name and birth year.
Here is an example execution of the program:
What is your name? John
How old are you?
Hello John! You were born in
Solution
Language: py
# get name as a string
# get age as an int
# calculate birth year
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
