Zip

Learn about the transforming function, called "zip", that allows you to loop over more than one sequence in the same loop.

zip function

Another function you may have seen used in a for loop is zip. It provides a way to loop over more than one sequence in the same loop, as shown below.

svg viewer

Get hands-on with 1400+ tech skills courses.