Python 3 | Smart iteration with the chain function #python3 #coding #programming

preview_player
Показать описание
The itertools module provides a really useful function called chain, here's how it works!
Рекомендации по теме
Комментарии
Автор

yo dawg, i heard you like for loops
def chain(*iterables): for itterable in iterables: yield from iterable

hijacked
Автор

But where is the use case scenario would be

umardurrani
Автор

[...a, ...b, ...c, ] is so quick and easy in javascript. Idk about performance though

jcsc
welcome to shbcf.ru