I think I understand how to deal with "for" statements in Sage. For example:

for j in range(5):
    print 3^j

will output the values of 3^0, 3^1, ..., 3^5. However, how could I do this for all the numbers, say 1 to 100, instead of just 3? Maybe this is a silly example, but I'm wondering how to deal with a double-index.

Thanks in advance!


Dana Ernst, Ph.D.
Assistant Professor
Department of Mathematics
Plymouth State University
MSC 29, 17 High Street
Plymouth, NH 03264-1595

Email: [email protected]
Web Page: http://oz.plymouth.edu/~dcernst
Office: Hyde 312

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using "remove me" as the subject.

Reply via email to