Made some changes to accessing pieces of arrays while doing a test recording.
authorAmit Sethi
Wed, 03 Nov 2010 11:51:25 +0530
changeset 400 2259bd43446a
parent 377 17f08d039309
child 401 abf092be95ef
Made some changes to accessing pieces of arrays while doing a test recording.
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.