# 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