Luke Paireepinart wrote: > Instead of helping you with your specific problem, I'll give you this > information and see what you can make of it. > > >>> print 'a'.ljust(20)+'b'.ljust(20) > a b > >>> print 'carrah'.ljust(20)+'foobar'.ljust(20) > carrah foobar
Another way to do this is with string formatting, I think it is a more readable and flexible solution: In [1]: print '%-20s %-20s' % ('a', 'b') a b In [2]: print '%-20s %-20s' % ('carrah', 'foobar') carrah foobar See this page for details: http://docs.python.org/lib/typesseq-strings.html Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor