Python: Basic: Leap Year

Write the function is_leap_year that takes an integer year and returns a boolean if year is a leap year or not. More information about leap years can be found here.


is_leap_year(2015) -> False
is_leap_year(2020) -> True

Test 1    

Test 2    

Test 3    

Test 4