LearnPy Hub
← Iterators & Generators problems
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
solution.py
Output appears here
Yield Three Words · Python practice problem · LearnPy Hub