Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

def is_leap(year): leap = False

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #def #leap #False
ADD COMMENT
Topic
Name
6+7 =