Parsing a large number of parms to a print statement.

KB keith at nekotaku.com
Thu Oct 22 18:47:19 EDT 2009


Excuse the top-post, but thanks to all, the tuple was the way to go.

On Oct 22, 2:16 pm, KB <ke... at nekotaku.com> wrote:
> Hi,
>
> I have to pass over 150 parameters to a print statement ala:
>
> print "%s <text> %s <other text> %s ....<150'th unique text> %s" % (v
> [0], v[1], ... v[150])
>
> I can't use a for loop like I normally would over the list "v" due to
> the different text fragments between each var.
>
> Is there a lambda function I can use in place of '% (v[0],v[1]...v
> [150])' ???
>
> Thanks in advance.




More information about the Python-list mailing list