Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

zip lists

# zip lists
names = ['tim', 'bill','joe']
ages = [12,13,15]
fav_color = ['blue','yellow','red']

print(list(zip(names,ages,fav_color)))
 
PREVIOUS NEXT
Tagged: #zip #lists
ADD COMMENT
Topic
Name
6+3 =