list.extend and list comprehension [duplicate] April 8, 2023 by Tarik Stacked LCs. [y for x in a for y in [x[0]] * x[1]]