Re: List--->Tuple?

Magnus Lindberg (euamli@eua.ericsson.se)
7 Apr 1995 07:56:15 GMT

marko@CS.Stanford.EDU (Marko Balabanovic) writes:

>Is there an easy way to convert a list to a tuple?

>I need something which will take [a,b,c] and output (a,b,c), so that I can then
>use it as part of a dictionary key.

>Marko

Yes. Try tuple([a,b,c])

Magnus