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

How did the emergence of the fashion capitals influence global fashion?
Answer all questions please
Which conjunction or disjunction is equivalent to the open sentence |a – 7| ≤ 5? A. a – 7 ≥ 5 or a – 7 ≤ – 5 B. a – 7 ≥ 5 and a – 7 ≤ – 5 C. a – 7 ≤ 5 and a –
What is the answer to - 8=x5
There will be 6 people at ellies pie party she wants to bake enough pie so each person can eat at least 1/5 of pie what is the minimum number of pies ellie shou
Two liquids are poured into two cups. Cup A contains a colorless, odorless liquid. Cup B contains a colorless liquid with a strong odor. An ice cube floats
This passage uses the literary devices of ?
cory earns $52.00 in 7 hours find the unit rate answer key
What orientation are the Sun and Moon in to create high tides? Low tides?
What was the primary means of support that help Chinese immigrants to adjust to their new American homeland? A) welcome immigrants received at angel island B)