Write a function - HackerRank Problem Solution
Author: Al-mamun Sarkar
Date: 2020-03-23 15:05:28
Solutions of Write a function - HackerRank Problem
Code:
def is_leap(year):
leap = False
if year % 4 == 0:
leap = True
if year % 100 == 0:
if year % 400 == 0:
leap = True
else:
leap = False
else:
leap = False
return leap
Test Input:
1990
Test Output:
False
Explanation:
1990 is not a leap year because it's not a multiple of 4