LearnPy Hub
← Iterators & Generators problems
Medium

Delegating With yield from

Write flatten(rows) that uses yield from to yield every number of every row. Read n rows and print all numbers on one line.

Input

n, then n rows.

Output

One line.

Sample 1

Input
2
1 2
3
Output
1 2 3

Sample 2

Input
1
5 6 7
Output
5 6 7
solution.py
Output appears here
Delegating With yield from · Python practice problem · LearnPy Hub