Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if year is leap python

# Use calendar.isleap(year)
# https://docs.python.org/3/library/calendar.html#calendar.isleap has more information

import calendar
is_leap = calendar.isleap(2100) # returns False
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #check #year #leap #python
ADD COMMENT
Topic
Name
7+9 =