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 the meaning of 5 < x > 7 ?
A job search should be treated like a full time job. True or False.
a square rotated about its center by 360° maps on to itself at (1, 2, 3, or 4) different angles of rotation.
What are the effects of cultural diversity among the American people during the late 20th and early 21st centuries? Explain in complete details.
what are some of the special features in the pacific coast region
Heredity is considered a controllable risk factor. Please select the best answer from the choices provided. T F
given the following system of equations, identify the type of system.x y = 6y = 3 - xconsistentinconsistentequivalent
Which aspect of Gothic literature that are evident in the first four chapter of the book "Frankenstein"? A. A main character who is a madman. B. Exotic setting
A tortoise is walking in the desert. It walks at a speed of 7 meters per minute for 17.5 meters. For how many minutes does it walk?
Which of the following description most clearly defines tone in literature? A. the opinions the writer expresses through characters and events. B. the way the