def is_leap_year(year):
if year % 4 == 0:
if year % 100 == 0 and year % 400 != 0:
return "This year is NOT a leap year."
elif year % 100 == 0 and year % 400 == 0:
return "This is a leap year! Now you get to suffer 1 more day than usual!"
else:
return "This year is Not a leap year"
print(is_leap_year(int(input("What year is this?"))))
I'm really new to python, so I'm sorry if i'm being a dumbass, I've yet to understand how the "return" function works...