Simple formatting string question

Matthew Hirsch meh9 at cornell.edu
Thu Apr 13 14:56:38 EDT 2000


Hi All,

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.

Do you know what the correct syntax should be?

Thanks,
Matt



More information about the Python-list mailing list