Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sage % symbol

I am a beginner to Sage. During learning Sage I found a code snippet here

for i in range(5):
     print('%6s %6s %6s' % (i, i^2, i^3))

Can anybody explain why %() is used here ?