loops/script.rst
changeset 324 4054b1a6392d
parent 278 461a68dbefb1
child 365 0fbe8a18587f
--- a/loops/script.rst	Wed Oct 13 17:32:23 2010 +0530
+++ b/loops/script.rst	Wed Oct 13 17:32:59 2010 +0530
@@ -1,12 +1,34 @@
-========
- Script
-========
+.. Objectives
+.. ----------
+
+.. By the end of this tutorial, you will be able to
+
+.. 1. use the ``for`` loop 
+.. #. use the ``while`` loop
+.. #. Use ``break``, ``continue`` and ``pass`` statements to play around
+..    with loops.
+
+.. Prerequisites
+.. -------------
 
-{{{ show the welcome slide }}}
+.. 1. getting started with ipython
+.. #. getting started with for
+.. #. conditionals
 
-Welcome this tutorial on loops in Python. 
+     
+.. Author              : 
+   Internal Reviewer   : 
+   External Reviewer   :
+   Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
 
-{{{ show the outline slide }}}
+Script
+------
+
+{{{ Show the slide containing title }}}
+
+Hello Friends. Welcome this tutorial on loops in Python. 
+
+{{{ Show the outline slide }}}
 
 In this tutorial, we shall look at ``while`` and ``for`` loops. We
 shall then look at the ``break``, ``continue`` and ``pass`` keywords
@@ -38,8 +60,12 @@
 other block in Python, the code within the ``while`` block is indented
 to the right by 4 spaces. 
 
-E%% %% Pause the video here and write a ``while`` loop to print the
-squares of all the even numbers below 10. Then, return to the video.
+Following is an exercise that you must do. 
+
+%%1%% Write a ``while`` loop to print the squares of all the even
+numbers below 10. 
+
+Please, pause the video here. Do the exercise and then continue. 
 
 ::
 
@@ -60,8 +86,12 @@
   for n in range(1, 10, 2):
       print n*n
 
-E%% %% Pause the video here and write a ``for`` loop to print the
-squares of all the even numbers below 10. Then, return to the video. 
+Following is an exercise that you must do. 
+
+%%2%% Write a ``for`` loop to print the squares of all the even
+numbers below 10. 
+
+Please, pause the video here. Do the exercise and then continue. 
 
 ::
 
@@ -106,10 +136,13 @@
       print n*n
   
 
-E%% %%Pause the video here and using the ``continue`` keyword modify
-the ``for`` loop to print the squares of even numbers below 10, to
-print the squares of only multiples of 4. (Do not modify the range
-function call.) Then, resume the video. 
+Following is an exercise that you must do. 
+
+%%3%%Using the ``continue`` keyword modify the ``for`` loop to print
+the squares of even numbers below 10, to print the squares of only
+multiples of 4. (Do not modify the range function call.) 
+
+Please, pause the video here. Do the exercise and then continue. 
 ::
 
   for n in range(2, 10, 2):
@@ -117,8 +150,15 @@
           continue      
       print n*n
 
+{{{ Show summary slide }}}
+
 That brings us to the end of this tutorial. In this tutorial, we have
 learnt about looping structures in Python and the use of the keywords
 ``pass``, ``break`` and ``continue``. 
 
-Thank You!
+{{{ Show the "sponsored by FOSSEE" slide }}}
+
+This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
+
+Hope you have enjoyed and found it useful.
+Thank you!