You are viewing a single comment's thread. Return to all comments →
if** year % 4 == 0 and (year % 400 == 0 or year % 100 != 0)** is true the how the true boolean is affected to leap variable since we didn't you didn't make leap=something?
I hope you get the idea
return year%4==0 and (year%400==0 or year%100!=0)
by using this , you will get ur answer . you dont have to use an extra variable 'leap'