[Tutor] help: space formatting for multiplication table

Max Noel maxnoel_fr at yahoo.fr
Sat May 14 21:21:43 CEST 2005


On May 14, 2005, at 20:09, Aaron Elbaz wrote:

> The idea is to print out a multiplication table on the command line
> with numbers lining up in the ones column. I want to eventually
> emulate programs like top with their spacing. But this code is mostly
> for my amusement. How would you make this work?
>

     You may want to have a look at the string ljust() and rjust()  
methods.

-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting  
and sweating as you run through my corridors... How can you challenge  
a perfect, immortal machine?"



More information about the Tutor mailing list