Published
- 1 min read
python join generators
The solution for this is noted below
python join generators
Solution
from itertools import chain
generator = chain('ABC', 'DEF')
for item in generator:
print(item)
Try other methods by searching on the site. That is if this doesn’t work