menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write a Python program that prompts the user to input your name, nationality, and calculates the age by entering the year of birth.
Zombie
asked
Aug 7, 2023
122,742
views
4
votes
4
votes
Write a Python program that prompts the user to input your name, nationality, and calculates the age by entering the year of birth.
Computers and Technology
high-school
Zombie
asked
Aug 7, 2023
by
Zombie
3.3k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
9
votes
9
votes
#sample python program
###################
currentYear = 2022
name = str(input(“Enter your name: “))
nationality = input(“Enter your nationality: ”)
birthYear = int(input(“Enter your birth year: “)
print(“Your age is:”, (currentYear - birthYear))
Northpole
answered
Aug 12, 2023
by
Northpole
3.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
3.2m
questions
4.1m
answers
Other Questions
Assume you have created a mechanical arm that can hold a pen. The arm can perform the following tasks: • Lower the pen to a piece of paper. • Raise the pen from the paper. • Move the pen 1 inch along a
Drag each connector name to match the connector type shown.
What problem does chlorofluorocarbon (CFC) create? a. it causes lead poisoning b.it causes great damage to the ozone layer c. it leaks into food as it cools the air and refrigerators d. it is responsible
Does anyone have game design in connections
What do customers typically notice during virtual interactions?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org