Search for question
Question

Part C:

Write a function to determine whether a given year is a leap year or not. A leap year is either

divisible by 400 or divisible by 4 but not divisible by 100. Complete function is_leap_year() which

takes an integer year as input and prints a string 'Leap year' or 'Not a leap year' based on the

leap year conditions. [6 points]

def is leap year (year):

if

print("Leap year")

else:

print("Not a leap year").

or

Fig: 1