LearnPy Hub
← Input problems
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.
solution.py
Output appears here
Join With sep, Finish With end · Python practice problem · LearnPy Hub