Write a programBasic10 XPExercise 8/9

Leap year

Task

A year is a leap year if it is divisible by 4 but not by 100 - except years divisible by 400, which are leap years. So 2024 and 2000 are leap years, 2023 and 1900 are not.

The program reads a year and prints priestupny (leap) or nepriestupny (not leap).

Examples

  • Input

    2024

    Expected output

    priestupny

After you submit, 4 hidden tests will also check your solution: an ordinary year, the year 1900, the year 2000, the year 2100.

Python starts the first time you run code.

Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.

Input (stdin)

Each line = one call to input().

Output

Hints

Try it yourself first. Each hint reveals a little more - and lowers the reward a little.

Signed out, hints are free - but no XP is awarded either.

Solution

The solution unlocks after the last hint.