python library function to print all the leap years code example Example: python check if year is a leap year import calendar print(calendar.isleap(1900))