user
Write a function to find out whether a given year is a leap year or not. Output:
assistant
def is_leap_year(year):
    if year % 400 == 0:
        return True
    elif year % 100 == 0:
        return False
    elif year % 4 == 0:
        return True
    else:
        return False