| 1 | initial version |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.