Cleaned up script of manipulating strings LO.
authorPuneeth Chaganti <punchagan@fossee.in>
Fri, 08 Oct 2010 13:12:25 +0530
changeset 265 5734d03b026c
parent 254 c43677920502
child 266 8018779e02b7
Cleaned up script of manipulating strings LO.
manipulating-strings/script.rst
--- a/manipulating-strings/script.rst	Fri Oct 08 12:36:28 2010 +0530
+++ b/manipulating-strings/script.rst	Fri Oct 08 13:12:25 2010 +0530
@@ -1,10 +1,31 @@
-========
- Script
-========
+.. Objectives
+.. ----------
+
+.. By the end of this tutorial, you will be able to
+
+.. 1. Slice strings and get sub-strings out of them
+.. #. Reverse strings
+.. #. Replace characters in strings. 
+.. #. Convert to strings to upper or lower case
+
+.. Prerequisites
+.. -------------
 
-{{{ show the welcome slide }}}
+..   1. getting started with strings
+..   #. getting started with lists
+..   #.
+     
+.. Author              : Puneeth 
+   Internal Reviewer   : 
+   External Reviewer   :
+   Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
 
-Welcome to this tutorial on manipulating strings. 
+Script
+------
+
+{{{ Show the slide containing title }}}
+
+Hello Friends. Welcome to this tutorial on manipulating strings. 
 
 {{{ show the slide with outline }}} 
 
@@ -59,8 +80,12 @@
 As we already know, the last element of the string can be accessed
 using ``s[-1]``.  
 
-%%1%% Pause the video here and obtain the sub-string excluding the
-first and last characters from the string. 
+Following is an exercise that you must do. 
+
+%%1%% Obtain the sub-string excluding the first and last characters
+from the string.
+
+Please, pause the video here. Do the exercise(s) and then continue. 
 
 ::
 
@@ -131,10 +156,13 @@
 Note that these methods, do not change the original string, but return
 a new string.
 
-a%% %% Pause the video here, and finish the problem of checking if
-``s`` is a valid name of a day of the week and then resume the
-video. Change the solution to this problem, to include forms like,
-SAT, SATURDAY, Saturday and Sat. 
+Following is an exercise that you must do. 
+
+%%2%% Check if ``s`` is a valid name of a day of the week. Change the
+solution to this problem, to include forms like, SAT, SATURDAY,
+Saturday and Sat.
+
+Please, pause the video here. Do the exercise and then continue. 
 
 ::
 
@@ -160,8 +188,11 @@
    email = email.replace("[at]", "@")
    print email
 
-%%1%% Pause the video here and replace the ``[dot]`` with ``.`` and then
-resume the video. 
+Following is an exercise that you must do. 
+
+%%3%% Replace the ``[dot]`` with ``.``
+
+Please, pause the video here. Do the exercise and then continue. 
 
 ::
 
@@ -176,4 +207,10 @@
 In this tutorial, we have learnt how to get substrings, reverse
 strings and a few useful methods, namely upper, lower and replace. 
 
-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!
+