Python’s zip()
function creates an iterator that will aggregate elements from two or more iterables. You can use the resulting iterator to quickly and consistently solve common programming problems, like creating dictionaries. In this course, you’ll discover the logic behind the Python zip()
function and how you can use it to solve real-world problems.
By the end of this course, you’ll learn:
- How
zip()
works in both Python 3 and Python 2 - How to use the Python
zip()
function for parallel iteration - How to create dictionaries on the fly using
zip()
[ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]
from Real Python
read more
No comments:
Post a Comment