KB <ke...@nekotaku.com> writes: > 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.
print "%s <text> ..." % tuple(v[:150]) But what you're trying to do looks bizarre. Find a way to make the constant strings inside the print statement part of the data. -- http://mail.python.org/mailman/listinfo/python-list