def is_leap(year): leap = False

35

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

Comments

Submit
0 Comments