menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Write a Python program that prompts the user to input your name, nationality, and calculates the age by entering the year of birth.
Ask a Question
Questions
Unanswered
Tags
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.
asked
Aug 7, 2023
123k
views
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 & Tech
high-school
Zombie
asked
by
Zombie
8.0k
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
#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
8.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Nov 7, 2024
137k
views
Factorial Calculation Write a Python program that prompts the user to enter a positive integer and calculates its factorial using a while loop. The program should then display the result to the user. The
Pageman
asked
Nov 7, 2024
by
Pageman
8.2k
points
Computers & Tech
high-school
1
answer
5
votes
137k
views
asked
Sep 18, 2024
219k
views
In python, create a program that prompts the user for a set of scores and then calculates the percentage of scores above 70%. Please use if statement and another counter Example: Please enter a set of
David Genn
asked
Sep 18, 2024
by
David Genn
8.0k
points
Computers & Tech
high-school
1
answer
5
votes
219k
views
asked
Jun 14, 2024
183k
views
write a python program that prompts the user to enter a number of quarts, and then calculates the number of barrels and remaining quarts, as well as the number of ounces, and then prints the results.
Vashti
asked
Jun 14, 2024
by
Vashti
8.2k
points
Computers & Tech
high-school
1
answer
0
votes
183k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org