We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defis_leap(year):leap=Falseifyear%4==0and(year%100!=0oryear%400==0):leap=True# 2-d option with builtin function (commented):# leap = __import__('calendar').isleap(year)returnleap
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Write a function
You are viewing a single comment's thread. Return to all comments →