To flatten just one amount and when Each individual with the merchandise is itself iterable You can even use iteration_utilities.flatten which by itself is just a skinny wrapper around itertools.chain.from_iterable:start: the beginning index with the slice, it will eventually include the component at this index Except if it's similar to haltIt barg