Hi Michael,

On 2018-11-10, David Joyner <wdjoy...@gmail.com> wrote:
>> And the question:  why are the two lines not identical?
>>
>
> My guess is that python 2.7 interprets c/b to be 1, by the sage preparser
> interprets 6/5 to be an element of QQ. Just a guess. With Python 3, they
> should be the same.

In addition to David's answer: range() is just a built-in Python function, thus
returning Python int. If you want a similar function that returns Sage's
"Integer", you may use srange instead.

Best regards,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to