You are viewing a single comment's thread. Return to all comments →
The calendar builtin module has a function isleap() that returns True if the year is leap, otherwise it returns False
import calendar def is_leap(year): return calendar.isleap(year)
Seems like cookies are disabled on this browser, please enable them to open this website
Write a function
You are viewing a single comment's thread. Return to all comments →
The calendar builtin module has a function isleap() that returns True if the year is leap, otherwise it returns False