Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check leap year

def is_leap_year(year):
        """This functon returns True if year is a leap year, returns False otherwise"""
        if year % 4 == 0:
                return True
        return False
Source by subeen.com #
 
PREVIOUS NEXT
Tagged: #check #leap #year
ADD COMMENT
Topic
Name
3+5 =