Home
Python Tutorial
Introduction
Data Type
Statement
Operator
String
Tuple
List
Dictionary
Collections
Function
Class
File
Buildin Function
Buildin Module
Database
Regular Expressions
Thread
Tkinker
wxPython
XML
Network
CGI Web
Windows
Menu
zip « Buildin Function « Python Tutorial
Python Tutorial
Buildin Function
zip
13.49.zip
13.49.1.
zip() zips together the sequences, returning a list of tuples:
13.49.2.
Use zip function in for loop
13.49.3.
zip() stops when the shortest sequence is "used up" for different lengths
13.49.4.
enumerate() and zip()
13.49.5.
zip to a dictionary