Use "join()" instead of a for loop
One line, more generalized, as a function:
One line, even more generalized!