How to determine whether a year is a leap year? March 1, 2023 by Tarik Use calendar.isleap: import calendar print(calendar.isleap(1900))