Ask Your Question

Revision history [back]

Note that the % is kind of being deprecated in favor of the format method, your snippet will be replaced as follows:

sage: for i in range(5):
....:      print('{:>6} {:>6} {:>6}'.format(i, i^2, i^3)) 
     0      0      0
     1      1      1
     2      4      8
     3      9     27
     4     16     64