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

What is a type of democracy where citizens elect leaders to represent them in government
A hydrophobic amino acid r group (side group) would be found where in a protein? a. forming a peptide bond with the next amino acid in the polypeptide chain b.
The equation m=32g represents the average number of miles, m,that a car can go on g gallons of gas. What is the constant of proportionality and what does it re
Can you help me with theses problems plz.Also can you explain to me how to get it.Thank you
In his novels, Hemingway's characters are primarily which of these? Select all that apply. farmers dancers soldiers prizefighters zookeepers sportsmen matadors
Rewrite the expression by factoring out (u-7). 5u^2(u-7)-7(u-7)
What happened as a result of the Second Great Awakening? A). people started questioning the british monarchy's rule b). there was a dramatic increase in the
All of the following immigrants are contributions immigrants made to the United States except which one
Is the correct answer E)1 ?
Weakened rock on steep slopes that suddenly gives away and falls down is an example of what?