March 2003
Intermediate to advanced
656 pages
39h 30m
English
zip
zip(seq,*seqs)
Returns a list of tuples, where the nth
tuple contains the nth element from each
of the argument sequences. zip is called with
n iterable objects as arguments (where
n is greater than 0).
If the iterable objects have different lengths,
zip returns a list as long as the shortest
iterable, ignoring trailing items in the other iterable objects. See
also map in this section.
Read now
Unlock full access