First time here? Check out the FAQ!
answered 8 years ago
Note that the % is kind of being deprecated in favor of the format method, your snippet will be replaced as follows:
%
format
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