exzoticgaming21 exzoticgaming21
  • 18-09-2021
  • Computers and Technology
contestada

Write a program calculates your age in 2030 when you enter your birth year from the keyboard.

(Python)

Respuesta :

purity2m
purity2m purity2m
  • 18-09-2021

Answer:

print('THIS PROGRAM FORECAST YOUR AGE IN 2030 ' )

year = int(input('Please enter your year of birth: '))

age = 2030 - year

print ('YOUR AGE IN 2030 WILL BE - ', age)

Explanation:

The year entered will be stored in the variable "year", the value in "year" will be subtracted from 2030 and the result will be stored in the variable "age".

This value is displayed with a prompt as the persons age in 2030.

Answer Link

Otras preguntas

Can you answer my last question quickly please?
Cas9 cleaves both strands of the target DNA. Which of the following could occur when cells will try to repair the damage after cleavage by Cas9? (Select all tha
What is the answer to this please?
Ms. Troy would like you to make a copy of an outfit that she owns and really likes—a sleeveless dress with a short-sleeve jacket. She has selected a lilac linen
Which of the following sentences best represents culturally unbiased writing?
What would happen if you added an extra cytosine to your DNA?
which medical innovations did florence nightingale introduce in the nineteenth century
what cell has two organelles that break down chemicals
How do birds learn to sing some songs? A. defensive behavior B. spatial learning C. observational learning D. mimicry
What is an Intercounty and an intracounty mover