code

I’ve written a lot of code that doesn’t quite deserve its own post but, i want to be able to show to you so I’ve made a page containing them.

tomorrow
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)