Kodewick
Start learning →
Starter←→0 / 100

Name the album

#033StarterStringsLists2 min

A new album's name cannot have spaces, so the words are joined with dashes. Write join_with_dashes(words) to join the list's words with - into one string. One word is just that word; an empty list gives "".

Examples
join_with_dashes(["summer", "beach", "trip"])→'summer-beach-trip'
join_with_dashes(["cats"])→'cats'
main.py
def join_with_dashes(words):
    # your code here: join words with "-"
    return ""
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.