Demo entry 6749154

da

   

Submitted by danjer on Jun 12, 2018 at 11:33
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).