29 Apr
2007
29 Apr
'07
8:09 p.m.
On 4/29/07, Andrew Straw
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[1]