python printout format

2006-02-01 Thread Yong Wang
Hi, I have a data set like row = [[1,2,3,4,5], [6,7,8,9,10], [11,12,13,14,15]] when I use loop to print out data, I got compile error in printout statment. while j24: print ' ',string.ljust(str(units[0]), 5), print ' ',string.ljust(str(ports[j], 3), print '

Re: python printout format

2006-02-01 Thread Eric Nieuwland
Yong, Are you sure you indent with the same characters and there is no non-print code there? --eric On 1 feb 2006, at 17:36, Yong Wang wrote: Hi, I have a data set like row = [[1,2,3,4,5], [6,7,8,9,10], [11,12,13,14,15]] when I use loop to print out data, I got compile error in

Re: python printout format

2006-02-01 Thread Gary Herron
Yong Wang wrote: Hi, I have a data set like row = [[1,2,3,4,5], [6,7,8,9,10], [11,12,13,14,15]] when I use loop to print out data, I got compile error in printout statment. while j24: print ' ',string.ljust(str(units[0]), 5), print ' ',string.ljust(str(ports[j], 3),