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

which of the following is not a characteristic of jazz? A. Blues scaleB. Swing rhythmC. Electric guitar timbreD. Improvisation
How do the huge plains in the US affect the way people live there?
Sin 2x + tan 2x = 4tan/ 1- tan^4 prove that
Can anyone help me with these tasks, please?
Why can't fungi make their own food using photosynthesis
How many died in the boston marathon bombing?
What is the prime factorization of 360? A. 23 • 32 • 5 B. 22 • 33 • 5 C. 23 • 3 • 15 D. 22 • 32 • 10
what is a peer review
who stood to gain the most from a strong, national government?
A radio station advertised the Olympia Marathon by saying that about 12,000,000 calories would be burned in one day. If there were 3000 runners, about how many