Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Join the Words

Read a number n, then read n words (one per line). Print all the words joined together with dashes - between them.

Example:

Input:

text
3
red
green
blue

Output:

text
red-green-blue

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python