• + 0 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'