Skip to content
Advertisement

Tag: repeat

Repeat list elements based in another list

I would like to repeat elements from one list based in a second list, like this: I’ve got this result: I’d like to get this result: Answer You may iterate on both list together, using zip, then increase i until you reach the bound of the current value

Advertisement