program logic to know it its a leap year in python code example Example: python check if year is a leap year import calendar print(calendar.isleap(1900))