Demo entry 6749151

It´s a years to months and days calculator

   

Submitted by Danker meme on Jun 12, 2018 at 11:32
Language: Python 3. Code size: 340 Bytes.

def calcDays(days):
    localdays=days*365
    return localdays
def calcMonths(months):
    localmonths=months*12
    return localmonths

ageYears= int(input("What is your age:"))
print("Your age in years is:", ageYears)
days=calcDays(ageYears)
print("Your age in days",days)
months=calcMonths(ageYears)
print("Your age in months:",months)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).