Write a programBasic10 XPExercise 7/9

Odd numbers except 17

Task

The program (with no input) prints every odd number below 30 except 17. You may separate the numbers with spaces or print each on its own line.

Examples

  • Input

    (no input)

    Expected output

    1 3 5 7 9 11 13 15 19 21 23 25 27 29

Rules

  • Use a while loop in this lesson.

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.