Difference between zip and map : zip : Buildin Function : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Buildin Function   » [  zip  ]  Screenshots 
 



Difference between zip and map



S1 = 'abc'
S2 = 'xyz123'

print zip(S1, S2)


print  map(None, S1, S2)


           
       
Related examples in the same category
1.  Generator Expressions Generator Expressions
2.  Loop over two or more sequences at the same time Loop over two or more sequences at the same time
3.  Zip a two lists Zip a two lists
4.  Read element in a zipped list Read element in a zipped list
5.  Zip three tuples Zip three tuples
6.  Zip function demo: returns a list of tuples Zip function demo:  returns a list of tuples
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.