You are viewing a single comment's thread. Return to all comments →
def is_leap(year): 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'
Write a function
You are viewing a single comment's thread. Return to all comments →
def is_leap(year): return year%4==0 and (year%400==0 or year%100!=0)