Easy
Yield Three Words
Write a generator
three() that yields one, two and three. Read a separator and print the values joined by it.Input
One line (the separator).
Output
One line.
Sample 1
Input
-
Output
one-two-three
Sample 2
Input
,
Output
one, two, three
Output appears here