Is Leap Year

Check if a year is a leap year.

Code

General
import calendar
return calendar.isleap(year)

Parameters

Year to check

Server

More Python Snippets