dylanlincoln22 dylanlincoln22
  • 18-11-2020
  • Computers and Technology
contestada

How do I convert years to days on Python. For example, if I were to enter 3 years it should output "You are 1095 days old".

Respuesta :

Cytokine
Cytokine Cytokine
  • 18-11-2020

years = int(input("Enter the # of years: "))

print("You are "+str(years*365)+" days old")

I wrote the code in python 3.8. I hope this helps!

Answer Link

Otras preguntas

The United States entry into the war was decisive because...?
A bag contains 6 red marbles, 6 white marbles, and 4 blue marbles. Find P (red or blue) A.) 2/3 B.) 5/8 C.) None are correct D.) 3/4
The term monsoons can be defined as (1) seasonal winds (2) sand deposits (3) ocean currents (4) mountain avalanches
In a certain instant lottery game, the chances of a win are stated as "7 in 19." Express the indicated degree of likelihood as a probability value between 0 and
The term monsoons can be defined as (1) seasonal winds (2) sand deposits (3) ocean currents (4) mountain avalanches
What characteristic describes late nineteenth-century sculptor Auguste Rodin's work
One similarity between the Sepoy Rebellion in India and the Boxer Rebellion in China is that both were (1) religious reform movements (2) reactions to the
Read the sentence. Everyone has access to the latest computers. What is the sentence’s error in logic? questionable cause and effect either/or argument overgen
$32 earrings marked up 80%
What two economic forces must be equal in a competitive market for the price of a product to remain stable with no shortage or surplus?