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

I NEEEEED HELP AND QUICK T~T
5. The point in Earth's interior where the energy release of an earthquake occurs is the: A. Focus B. Epicenter C. Shadow zone
How does joshua go ti school in japan A.He takes a school bus every Morning B.He rides the subway at 8:00 AM C.He walks with a group of students
Write a personal statement about how your education has prepared you to take on your next step after high school.
write the sum and then write an equivalent expression by collecting like terms and removing parentheses the opposite of (5x - 1) and 5x
What did people do during and after a dust storm? Give your answer in at least three sentences. ANSWERS: - how people sought cover - how people tried to prote
Find the range of the function F(x) = the integral from 0 to x of the square root of 4-t^2 dt
What are some reasons Quakers were despised (hated) in England and Puritan Massachusetts?
difference between syntax error and semanticserror​
¿Cómo están ustedes hoy? (sad) it had to be a sad response