Write a programExercise 2/4Basic10 XP

Numbers with dashes

Task

With a single print, print the numbers 1, 2, 3, 4 and 5 separated by dashes:

1-2-3-4-5

Write the numbers as separate values (not as one ready-made text) and set the separator with the sep parameter.

Examples

  • Input

    (no input)

    Expected output

    1-2-3-4-5

Rules

  • Use a single print.

  • Set the separator with the sep parameter.

  • Do not write the numbers as ready-made text - let sep add the dashes.

You need to know

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.