Medium
Join With sep, Finish With end
Read words and a separator. Print the words joined by the separator using
print(*words, sep=…, end='.\n') so the line ends with a full stop.Input
Two lines.
Output
One line.
Sample 1
Input
a b c -
Output
a-b-c.
Sample 2
Input
hello world ,
Output
hello, world.
Output appears here