I see in the code on this Sage wiki page the following code:
@interact
def _(order=(1..12)):
Is this (1..n) syntax unique to Sage or is it something in Python? Also, what does it do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s Sage-specific. You can use
preparseto see how it is desugared to:See here for documentation of
ellipsis_iter, here for information on the preparser.