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

Solve 12x + 6 > 9x + 12. A. x2 2 B. x2 C. x26 D. x56
PLZZZ HELPPP!!!!! QUESTION: Identify who is telling the story. What has she suggested about her relationship with her mother so far? Explain and support your id
Providing skilled and competent services; being honest, courteous, and sincere; maintaining client confidentiality; participating in continuing education; and d
what is the sum 69x420
A line passes through the point , (−1, 1) and has a slope of −5.Write an equation in slope-intercept form for this line.
Please I need this right now
Mary is 50 years old. Susie is 10 years less than twice Mary's age. How old is Susie?
Please help me, This needs to be simplified.
Andreas is giving a speech to convince audience members that they can become millionaires by investing 20% of their income in stocks or real estate. He uses a m
According to the article, what caused Montgomery, Alabama, to change its bus laws? A. The Civil Rights Act was passed by Congress. B. Black citizens refused to