Ask Your Question

Revision history [back]

When you type 9 in Sage, the preparser makes it a Sage integer, that have a .digit method. The range function returns Python ints, who do not have such a method. As you discovered, the srange function returns Sage integers.