On Thu, Oct 22, 2009 at 11:16 PM, KB <ke...@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])' ???

It's not a lambda function, but what about

print "%s <text> %s <other text> %s ....<150'th unique text> %s" % tuple(v)




-- 
André Engels, andreeng...@gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to