is determined by the shortest sequencein [ ]seq [falsetruein [ ]zip(seq seq seq out[ ][('foo''one'false)('bar''two'true) very common use of zip is for simultaneously iterating over multiple sequencespossibly also combined with enumeratein [ ]for (abin enumerate(zip(seq seq ))print('% % % (iab) fooone bartwo bazthree given "zippedsequencezip can be applied in clever way to "unzipthe sequence another way to think about this is converting list of rows into list of columns the syntaxwhich looks bit magicalisin [ ]pitchers [('nolan''ryan')('roger''clemens')('schilling''curt')in [ ]first_nameslast_names zip(*pitchersin [ ]first_names out[ ]('nolan''roger''schilling'in [ ]last_names out[ ]('ryan''clemens''curt'we'll look in more detail at the use of in function call it is equivalent to the followingzip(seq[ ]seq[ ]seq[len(seq ]reversed reversed iterates over the elements of sequence in reverse orderin [ ]list(reversed(range( ))out[ ][ dict dict is likely the most important built-in python data structure more common name for it is hash map or associative array it is flexibly-sized collection of key-value pairswhere key and value are python objects one way to create one is by using curly braces {and using colons to separate keys and valuesin [ ]empty_dict {in [ ] {' 'some value'' [ ]data structures and sequences www it-ebooks info