Generator of names

Report a typo

Define a generator that would generate a list of given names, using the yield from expression for this. You will get names separated by space as input. Print out the names one by one on separate lines.

There are several ways to solve such tasks, but this time use yield from, please.

Sample Input 1:

Max Alex Kate

Sample Output 1:

Max
Alex
Kate
Write a program in Python 3





___

Create a free account to access the full topic