Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python zip

>>> a = [1, 2, 3]
>>> b = [4, 5, 6]
>>> c = zip(a, b)
>>> print(c)
<zip object at 0x7f55cfca3080>
>>> list(c)
[(1, 4), (2, 5), (3, 6)]
Source by codefreelance.net #
 
PREVIOUS NEXT
Tagged: #python #zip
ADD COMMENT
Topic
Name
2+2 =