Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MohamedMetwalli5/HackerRank-Solutions
/ is_leap
Function
is_leap
PythonSolutions/WriteAFunction.py:1–7 ·
view source on GitHub ↗
(year)
Source
from the content-addressed store, hash-verified
1
def
is_leap(year):
2
leap = False
3
if
year%4 ==0 and year%100!=0 :
4
leap = True
5
if
year%4 ==0 and year%100==0 and year%400==0:
6
leap = True
7
return
leap
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected