Hi Kwankyu, On 2018-10-18, Kwankyu Lee <ekwan...@gmail.com> wrote: > I am teaching sage to a class of first year math students. Today I was > embarrassed when I tried > > [i.is_prime() for i in range(1,10)] > > because this raises an error. Until this point, I deliberately did not > mention that there are in fact two kinds of "integers" in sage and avoided > to explain about differences of "int" and "Integer". > > I think that it should be possible for math students to use sage without > ever knowing "int". Then there should be an alternative to "range" that > produces "Integer"s rather than "int"s.
Such as srange(i,j)? Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.