tbendy8955 tbendy8955
  • 18-02-2022
  • Computers and Technology
contestada

Write a Python program that prompts the user to input your name, nationality, and calculates the age by entering the year of birth.

Respuesta :

Eggrollius Eggrollius
  • 18-02-2022
#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))
Answer Link

Otras preguntas

what is a transitive verb?
Terrance and Lakendra are going to GameStop for new video game controller and some new games. Their grandmother gave them a $125 gift card for this purpose. If
What do astronauts take to space?
what does 'hit or miss' mean?
Hello, myself Joyee. I am very much weak at Math and never get good at it. Though i have so many problems to ask. PLZ help me. Firstly, I need to know about t
Number 33 apparently the answer is 4 but I have no idea why
Which of the following are non-contact forces: friction, electrostatic force, magnetic force, gravity?
What do astronauts take to space?
find co-ordinates of (2,3) after it is rotated 240 degrees clockwise about the origin?
How do elements change as you move down a column in a periodic table? a.the atomic radius decreases b.the number of protons decreases c.the atomic mass decrea