At 12:35 PM 11/2/2006, Kent Johnson wrote: >Dick Moores wrote: >>At 11:33 AM 11/2/2006, Markus Rosenstihl wrote: >>>Try somthing like this: >>> >>>In [32]: a=range(100) >>>In [33]: for i in range(0,len(a)): >>> ....: print '%-27s'%a[i], >>> ....: if (i+1)%3 == 0: print "\n" >>> >>>0 1 2 >>> >>>3 4 5 >>>... >>>93 94 95 >>> >>>96 97 98 >>> >>>99 >>> >>> >>>Note the comma after the first print statement >>Yes, thanks, but the reason I wanted 3 columns was to compress the >>height of the list printout for the user, so I don't want all those >>blank lines. > >Just change 'print "\n"' to 'print' > >Kent
Of course! Don't know why I didn't see that. Thanks again, Kent and Markus. Dick _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor