list to tuple question

Xavier Defrang xavier at perceval.net
Fri Oct 5 10:48:34 EDT 2001


On Fri, 5 Oct 2001, Janos Blazi wrote:

> The point is, that b is already a list and this would simplify matters. Most
> unfortunately (or most obviously for the initiated) I get the error message
> that a tuple and a list cannot be concatenated. What should I do. I could
> solve the problem by using a for-loop but is it necessary?

You may transform your list into a tuple using the tuple built-in function. 

Xavier





More information about the Python-list mailing list