basic_python/intro.rst
changeset 65 0f25f22a2725
parent 52 9748190df418
child 67 5076574b7b83
--- a/basic_python/intro.rst	Wed Sep 16 16:51:01 2009 +0530
+++ b/basic_python/intro.rst	Wed Sep 16 16:57:49 2009 +0530
@@ -543,7 +543,8 @@
   False
 
 The **while** loop
-~~~~~~~~~~~~~~~~~~
+==================
+
 
 The Python **while** loop is similar to the C/C++ while loop. The syntax is as
 follows:
@@ -572,7 +573,7 @@
     5
 
 The **if** conditional
-~~~~~~~~~~~~~~~~~~~~~~
+======================
 
 The Python **if** block provides the conditional execution of statements. 
 If the condition evaluates as true the block of statements defined under the if 
@@ -612,7 +613,7 @@
          print n, " is 0"
 
 **raw_input()**
-~~~~~~~~~~~~~~~
+===============
 
 In the previous example we saw the call to the raw_input() subroutine. 
 The **raw_input()** method is used to take user inputs through the console.
@@ -685,7 +686,7 @@
 cannot be performed on it. Hence the exception is raised.
 
 **int()** method
-~~~~~~~~~~~~~~~~
+================
 
 Generally for computing purposes, the data used is not strings or raw data but 
 on integers, floats and similar mathematical data structures. The data obtained
@@ -715,7 +716,7 @@
 
 
 Functions in Python: **def**
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+============================
 
 *Functions* allow us to enclose a set of statements and call the function again
 and again instead of repeating the group of statements everytime. Functions also
@@ -809,7 +810,6 @@
   >>> can_change(name)
   >>> name
   ['Mr.', 'James', 'Gosling']
-
 If nothing is returned by the function explicitly, Python takes care to return
 None when the funnction is called.