def is_leap(year):
    leap = False
    if year % 4 == 0:
        leap = True
        if year % 100 == 0:
            leap = False
            if year % 400 == 0:
                leap = True
    return leap


print(is_leap(1990))
print(is_leap(2000))
print(is_leap(2400))

a37f3018c7475f92620f0814e658c6deb1c505e2
<mask token>

def is_leap(year):
    leap = False
    if year % 4 == 0:
        leap = True
        if year % 100 == 0:
            leap = False
            if year % 400 == 0:
                leap = True
    return leap


<mask token>

def is_leap(year):
    leap = False
    if year % 4 == 0:
        leap = True
        if year % 100 == 0:
            leap = False
            if year % 400 == 0:
                leap = True
    return leap


print(is_leap(1990))
print(is_leap(2000))
print(is_leap(2400))
