Ask Your Question

lalthomas's profile - activity

2017-04-10 12:30:36 -0500 commented answer Sage % symbol

Thank you for the answer. I found some documentation about % here. It basically says that % is a operator. Similar to operator overloading in C++, it is a modulus operator in Sage too. Can you update your answer to reflect the similar view as of the documentation. It is more clearer.

2017-04-10 08:45:44 -0500 received badge  Student (source)
2017-04-10 07:17:24 -0500 asked a question 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 ?

2017-04-08 15:31:12 -0500 commented answer Sharing files between SAGE and Windows

this is so cool :)