Ad

Using already defined function

Code
Diff
  • from calendar import isleap
    is_leap = lambda x: isleap(x)
    • is_leap = lambda n:(n%400==0 or (n%4==0 and n%100!=0))
    • from calendar import isleap
    • is_leap = lambda x: isleap(x)