August 2018
Intermediate to advanced
366 pages
10h 14m
English
Zipping means attaching two different iterables to create a new one that contains values from both.
This is very convenient when you have multiple tracks of values that should proceed concurrently. Imagine you had names and surnames and you want to just get a list of people:
names = [ 'Sam', 'Axel', 'Aerith' ] surnames = [ 'Fisher', 'Foley', 'Gainsborough' ]