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
List to tuple : Convert to Tuple « Tuple « Python Tutorial
Python Tutorial
Tuple
Convert to Tuple
listTuple = tuple([1,2,3]) print listTuple
6.5.Convert to Tuple
6.5.1.
The tuple function takes one sequence argument and converts it to a tuple
6.5.2.
List to tuple
6.5.3.
list() and tuple()