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

Plz Help (' O_O ') i need it in a little bit but plz help me
how is carbon captured and stored by organisms? how is carbon passed through the ecosystem? how is carbon returned to the ecosystem?​
What is 2/9 simplified?
Why did the U.S. rebuild Japan after WWII? O They wanted an ally and trading partner in that region. O They felt guilty about the atomic bombs. O The United Nat
Please help me on this its due in 40 minutes!!! :((
What is an appeal in the court system?
Im confused about this and I need someone to help me please and help the explain the answer ​
PLEASE HELP MEE FAST
Why do molecules change speed?. Claim 1: Molecules speed up when energy is created and slow down when energy is destroyed. Claim 2: Molecules speed up when they
What is the value of the interquartile range of the data below? 30 40 50 10 20 0 6 12 14 24