HTMLify

leap_year.py
Views: 142 | Author: djdj
def is_leap(year):
    if year%100==0:
        if year%400==0:
            return True
        else:
            return False
    else:
        if year%4==0:
            return True
        else:
            return False

Comments