# HG changeset patch # User Amit Sethi # Date 1288765285 -19800 # Node ID 2259bd43446acf20d4c8a1a0a8ef204d7d0ece1d # Parent 17f08d039309ee0742607998d16e7a0a9b2f3994 Made some changes to accessing pieces of arrays while doing a test recording. diff -r 17f08d039309 -r 2259bd43446a accessing-pieces-arrays/script.rst --- a/accessing-pieces-arrays/script.rst Mon Nov 01 21:57:12 2010 +0530 +++ b/accessing-pieces-arrays/script.rst Wed Nov 03 11:51:25 2010 +0530 @@ -61,6 +61,8 @@ Pause the video here and make sure you have the arrays A and C, typed in correctly. +{{{ Pause the recording and type the arrays A,C }}} + Let us begin with the most elementary thing, accessing individual elements. Also, let us first do it with the one-dimensional array A, and then do the same thing with the two-dimensional array. @@ -71,6 +73,8 @@ A[2] +A of 2, note that we are using square brackets. + Like lists, indexing starts from 0 in arrays, too. So, 34, the third element has the index 2. @@ -79,6 +83,8 @@ C[2, 3] +C of 2,3. + 34 is in the third row and the fourth column, and since indexing begins from zero, the row index is 2 and column index is 3.