View Single Post
Old Jul 6th, 2007, 10:52 PM   #4
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
I adjusted the numbers a bit:

print '%3d  %7d' % (i, square(i))

The numbers 3 and 7 that follow the percentage sign I believe mean to tell the compiler to right justify the number in a field width of 3 character postions, and the next number would be right justified in a field width of 7 character positions. But when I count the number of character positions from the first number to where the second number(under the Square column)is located, no way is that just 7. It's gotta be more than that.
357mag is offline   Reply With Quote