> I'm trying to print something like this: > > >>> print 6*'%2i' '%1i' % tuple([5,5,5,5,5,5,1]) > > but I'm getting an error. This works: print (6 * ('%2i') + '%1i') % tuple([5,5,5,5,5,5,1]) It's all a matter of operator precedence. :) Alex.