list to tuple question

Janos Blazi jblazi at
Fri Oct 5 16:35:25 CEST 2001

I'd like to make a formatted string like this:

s='%s %s %s %s %s %s %s %s %s\n' % (A,)+b+(C,D)

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?


-----=  Posted via Newsfeeds.Com, Uncensored Usenet News  =----- - The #1 Newsgroup Service in the World!
 Check out our new Unlimited Server. No Download or Time Limits!
-----==  Over 80,000 Newsgroups - 19 Different Servers!  ==-----

More information about the Python-list mailing list