To flatten just one stage and if Just about every with the goods is by itself iterable You may as well use iteration_utilities.flatten which alone is simply a thin wrapper all around itertools.chain.from_iterable:So any if-else Handle circulation should be finished from the expression evaluated above. Also because list comprehensions develop a list