On 4/29/07, Andrew Straw email@example.com wrote:
No, the nth index of a Python sequence is a[n], where n starts from zero. Thus, if I want the nth dimension of array a, I want a.shape[n].
I reverted the page to its original form and added a couple explanatory comments about zero vs one based indexing.
Would it be better to replace n with a number, say, 2?
size(a, 2) a.shape