We only use one return in a function:
def leap_year(a_year): is_leap_year = False if a_year % 100 == 0 and a_year % 400 == 0: is_leap_year == True elif a_year %4 ==0: is_leap_year = True return is_leap_year