6 kyu
Leap year (with restrictions)
399suic
Description:
Task
You're given a year n
(1583 <= n < 10000
). You need to create a function which return True
if n
is a leap year and False
otherwise.
Restrictions
Your code mustn't contain:
def
if
eval
orexec
return
import
Note
Feel free to rate the kata when you finish it :)
P.S.: Sofisticated cheats, which do not circumvent the testing framework itself, are welcome.
Puzzles
Restricted
Similar Kata:
Stats:
Created | Dec 7, 2016 |
Published | Dec 7, 2016 |
Warriors Trained | 1007 |
Total Skips | 32 |
Total Code Submissions | 1884 |
Total Times Completed | 399 |
Python Completions | 399 |
Total Stars | 14 |
% of votes with a positive feedback rating | 91% of 103 |
Total "Very Satisfied" Votes | 87 |
Total "Somewhat Satisfied" Votes | 13 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 7 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |