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

Some nonsedimentary rock are formed as a result of 1. Solidification of molten material 2. Evaporation and precipitation 3. Cementation of particles 4. Depositi
as urban workers experience growing wealth in the 1920s, farmers
What is the reduced fraction form of 45/55?
for each of the terms below, explain the relationship that exists. electrical energy---nuclear energy potential energy---kinetic energy
convert 42/30 into a percent and decimal.
Will the opposite of zero always ,sometimes or never be zero
In "The Stone," what does the stone symbolize? A. couples that do not learn to forgive and forget B. things that do not grow or change C. the needs and want
What is 203 over 500 simplified to?
describe three different methods you could use to graph the equation 5x+3y = 12
1.) All mutation assist an organisms survival. True or False 2.) Genes are arranged in coiled strands called centromeres. True or False. 3.) Pennelt squares r