[Tutor] list --> tuple

ak@silmarill.org ak@silmarill.org
Tue, 24 Jul 2001 17:38:57 -0400


On Tue, Jul 24, 2001 at 04:16:34PM -0500, Peter He wrote:
> Hi,
> 
> Is there anyway we can convert list into tuple?

>>> l = [1,2,3]
>>> tuple(l)
(1, 2, 3)


-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: http://silmarill.org/cymbaline