I need help passing the unit test.
my code(python):
def is_leap_year(user_year): if user_year%400 == 0: return True elif user_year%100 != 0 and user_year%4 == 0: return True return False
year = int(input())if is_leap_year(year): print(str(year) + " is a leap year.")else: print(str(year) + " is not a leap year.")
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here