0

Leap year solution

I don't konw what is wrong with my code below year = int(input()) #your code goes here if year % 4 != 0: print("NOT leap year") elif year % 100 != 0: print("Leap year") elif year % 400 == 0: print("Leap year") else: print("Not a leap year") It said my code is not wrong but output not matches correct answer.

12th Jul 2021, 8:28 AM
박수혞
박수혞 - avatar
2 RĂ©ponses
+ 5
Your output should be matched with expected output since python is case sensitive print("Not a leap year") print("Leap year")
12th Jul 2021, 8:33 AM
Simba
Simba - avatar
+ 1
Thank you very much. It was stupid question and I should read it more meticulously.
12th Jul 2021, 8:44 AM
박수혞
박수혞 - avatar