Python itertools.chain() Function
The itertools.chain() function chains multiple iterables together into a single iterator.
Syntax
itertools.chain(*iterables)
Return Value
An iterator that chains the input iterables.
Example
Output
Click Run to execute your code