Skip to content
Advertisement

Tag: zip

Creating a function that works like “zip”

I am trying to make a function that does something similar to “zip”. My problem is that the part doesn’t work. In the case below, it should take every third element from the L4, and append it to a new list, so I ended up with [[1, 4, 7], [2, 5, 8], [3, 6, 9]], but that is not really

Advertisement