'''Question: 
Write a Python program to determine whether a given year is a leap year.
'''

# Python code: 

def leap_year(y):

    if y % 400 == 0:

        return True

    if y % 100 == 0:

        return False

    if y % 4 == 0:

        return True

    else:

        return False

print(leap_year(1900))

print(leap_year(2004))



'''Output sample: 
False                                                                                                         

True

'''