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 the inequality 21 - z < 19
what event resulted in the creation of nasa
Mike bungee jumped from a building with eight stories. Each story was 15 4/5 feet in height. How tall was the building?
What's the Coulomb's law?
One feminist said that Friedan had the same impact on women that Martin Luther King Jr., had on African Americans. How were the effects of their lives similar?
How did the Egyptians view the pharaoh?
A consumer uses goods and services to ______. A. Make products using fair trade B. Earn money by selling them C. Satisfy economic wants
Imagine you are a resident of Judea during the time of Jesus. Write a letter to a friend in Rome describing Jesus and his teachings.
What technology helped propagate consumerism and uniformity of American life in the 1950s? a.)AM radio b.)computers c.)television d.)the transistor
Why are classical allegories not regarded as realistic fiction?