On Sun, Oct 10, 2010 at 7:26 AM, Santanu Sarkar
<[email protected]> wrote:
> How one can define an array of length 10000?
> For example an array of length 4 is X = [1, 2, 1, 3].

In that example, you are actually defining a Python *list* rather than
an array.  If you want to create a list of length 10000, one way to do
it would be to do:

X = [None]*10000

Every entry in that list will be the Python object None.

--Mike

-- 
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

Reply via email to