What does zip mean?

giacomo boffi giacomo_boffi at inwind.it
Mon Nov 10 17:48:25 CET 2014


On 11/09/2014 11:44 AM, satishmlmlml at gmail.com wrote:
> What does zip return in the following piece of code?

To help you understanding what is the `zip` builtin,
please forget about PKZip etc and think about the
_zip fastener_ or _zipper_ in your bag or in your trousers

In the bag you have two sequences of teeth that the zipper
binds together in interlocking pairs

In your program you have two lists, whose elements `zip` returns
bound together in pairs



More information about the Python-list mailing list