Write a programBasic10 XPExercise 3/9

Numbers without 3, 7 and 14

Task

The program reads a limit (a whole number from 0 to 20) and prints the numbers from 0 up to and including the limit - except 3, 7 and 14. You may separate the numbers with spaces or print each on its own line.

If the limit is not from 0 to 20, it prints zla hranica (bad limit).

Examples

  • Input

    10

    Expected output

    0 1 2 4 5 6 8 9 10

Rules

  • Use a while loop in this lesson.

After you submit, 5 hidden tests will also check your solution: limit 20, limit 0, limit 3, a limit over 20, a negative limit.

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.