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

How many square units are in an office that is 13 units by 9 units? 22 117 121 130?
What is the probability that the next flood will occur four years from now?
Explain why the quantum number set (3,2,-3,+1/2) is not possible for an electron in a ground state atom
I'm stuck on this question can someone help me
Encouraging users to click a like button is an example of which step in the social marketing process? fan acquisition brand strength community amplification
The number of grams of water vapor in a cubic meter of air is called the
Using the structural classification, what type of joint is a suture
How were the reasons for creating the colony of Georgia different from the reasons for creating the other colonies
In a punnett square what is on the outside and what is on the inside
Will someone help me please?