In this course, you’ve learned how to use Python’s
zip() can receive multiple iterables as input. It returns an iterator that can generate tuples with paired elements from each argument. The resulting iterator can be quite useful when you need to process multiple iterables in a single loop and perform some actions on their items at the same time.
Now you can:
- Use the
zip()function in both Python 3 and Python 2
- Loop over multiple iterables and perform different actions on their items in parallel
- Create and update dictionaries on the fly by zipping two input iterables together
You’ve also coded a few examples that you can use as a starting point for implementing your own solutions using Python’s
zip() function. Feel free to modify these examples as you explore
zip() in depth!
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
DanielHao5 on June 2, 2020
Good intro to this powerful built-in function. All the examples are very well crafted and have practical use cases.
BTW - what’s the IDLE in the presentation?