--- a/accessing-pieces-arrays/script.rst Thu Oct 28 15:50:13 2010 +0530
+++ b/accessing-pieces-arrays/script.rst Mon Nov 01 21:57:12 2010 +0530
@@ -37,13 +37,14 @@
{{{ switch back to the terminal }}}
-.. #[[Anoop: context switch, switch to next slide should be added]]
-
As usual, we start IPython, using
::
ipython -pylab
+
+{{ Show the slide with the arrays, A and C }}
+
Let us have two arrays, A and C, as the sample arrays that we will
use to work through this tutorial.
@@ -70,8 +71,6 @@
A[2]
-.. #[[Anoop: should be A[2], corrected it]]
-
Like lists, indexing starts from 0 in arrays, too. So, 34, the
third element has the index 2.
@@ -134,7 +133,7 @@
Following is an exercise that you must do.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Question 1}}
%%1%% Change the last column of C to zeroes.
@@ -154,7 +153,7 @@
Following is an exercise that you must do.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Question 2}}
%%2%% Change ``A`` to ``[11, 12, 13, 14, 15]``.
@@ -200,11 +199,7 @@
at the prompt, and see that an array is displayed.
-To check the dimensions of any array, we can use the method
-shape. We say
-
-.. #[[Anoop: method is a function and .shape is a tuple, so it can be named
- as value or something instead of the term method.]]
+To check the dimensions of any array, we can use ``.shape``. We say
::
@@ -242,7 +237,7 @@
Following is an exercise that you must do.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Question 3 }}
%%3%% First, obtain the elements [22, 23] from C. Then, obtain the
elements [11, 21, 31, 41] from C. Finally, obtain the elements [21,
@@ -250,7 +245,7 @@
Please, pause the video here. Do the exercises and then continue.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Solution 3 }}
::
@@ -286,13 +281,13 @@
Following is an exercise that you must do.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Question 4 }}
%%4%% Obtain the elements [[23, 24], [33, -34]] from C.
Please, pause the video here. Do the exercises and then continue.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Solution 4 }}
::
@@ -318,13 +313,13 @@
Following is an exercise that you must do.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Question 5 }}
%%5%% Obtain the square in the center of the image.
Following is an exercise that you must do.
-.. #[[Anoop: add context switches, switch to next slide]]
+{{ show slide containing Solution 5 }}
::
@@ -359,9 +354,7 @@
gives the elements, [[21, 23, 0], [41, 43, 0]]
-.. #[[Anoop: I think you forgot to "add switch to next slide" context
- switch, I think it will be better you review the scripts(all) for
- context switches and add them.]]
+{{ show slide containing Question 6 }}
Following is an exercise that you must do.
@@ -371,6 +364,8 @@
Please, pause the video here. Do the exercises and then continue.
+{{ show slide containing Solution 6 }}
+
::
C[::3, 1::3]
@@ -410,13 +405,12 @@
also learnt how to modify arrays, element wise or in larger
pieces.
-.. #[[Anoop: I think in the summary slide it is better to use single &
- multi dimensional arrays instead of 1D and Multi dimensional arrays.]]
+{{{ Show the "sponsored by FOSSEE" slide }}}
-.. #[[Anoop: switch to thank you slide, added comment as it most probably
- won't be noticed]]
+This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
-Thank You!
+Hope you have enjoyed and found it useful.
+Thank you!
..
Local Variables: