def is_leap(year):
    """This function takes a year and returns if it is a leap year.
    Param: year (positive integer)
    Return: boolean
    """
    return year % 400 == 0 or year % 4 == 0 and year % 100 != 0