tomorrow

Just finished a python program that tells you tomorrows date

how it works:

the first part asks you for the date and then sets 6 variables,

day & aday, month & amonth, year & ayear

then it is put through if statements checking each month and then what the day is, then it print the answer.

date
print("im going to ask you for the date in 3 parts please enter in intergers")
day = int(input("day "))
month = int(input("month "))
year = int(input("year "))
print("tomorrow is")
amonth = month
ayear = year
if month == 1:
    if day == 31:
        aday = 1
        amonth = 2
    else:
        aday = (day+1)
if month == 2:
    leap = year%4
    if leap == 0:
        if day == 29:
            aday = 1
            amonth = 3
        else:
            aday = (day+1)
    else:
        if day == 28:
            aday = 1
            amonth = 3
        else:
            aday = (day+1)
if month == 3:
    if day == 31:
        aday = 1
        amonth = 4
    else:
        aday = (day+1)
if month == 4:
    if day == 30:
        aday = 1
        amonth = 5
    else:
        aday = (day+1)
if month == 5:
    if day == 30:
        aday = 1
        amonth = 6
    else:
        aday = (day+1)

if month == 6:
    if day == 30:
        aday = 1
        amonth = 7
    else:
        aday = (day+1)
if month == 7:
    if day == 31:
        aday = 1
        amonth = 8
    else:
        aday = (day+1)
if month == 8:
    if day == 31:
        aday = 1
        amonth = 9
    else:
        aday = (day+1)
if month == 9:
    if day == 30:
        aday = 1
        amonth = 10
    else:
        aday = (day+1)
if month == 11:
    if day == 30:
        aday = 1
        amonth = 11
    else:
        aday = (day+1)
if month == 12:
    if day == 31:
        aday = 1
        amonth = 1
        ayear = (year+1)
    else:
        aday = (day+1)

print(aday)
print(amonth)
print(ayear)