join_with(words, separator) that returns the strings in list words joined together using separator between each one (mirroring how print(*words, sep=separator) would display them, but returned as a string rather than printed).join_with(["red", "green", "blue"], " - ")
'red - green - blue'
Elements joined with " - " between them.
join_with(["a"], ",")
'a'
Single element: no separator needed.
`separator.join(words)` does exactly this.