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:

  1. def
  2. if
  3. eval or exec
  4. return
  5. 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

Stats:

CreatedDec 7, 2016
PublishedDec 7, 2016
Warriors Trained1007
Total Skips32
Total Code Submissions1884
Total Times Completed399
Python Completions399
Total Stars14
% of votes with a positive feedback rating91% of 103
Total "Very Satisfied" Votes87
Total "Somewhat Satisfied" Votes13
Total "Not Satisfied" Votes3
Total Rank Assessments7
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • suic Avatar
  • narayanswa30663 Avatar
  • Awesome A.D. Avatar
  • saudiGuy Avatar
Ad