getting_started_with_for.rst
changeset 202 069d4e86207e
parent 188 d0b76bc48aef
child 203 846d71a4e915
equal deleted inserted replaced
201:6b1efb74d914 202:069d4e86207e
    16 
    16 
    17 Hello and welcome to the tutorial getting started with ``for`` loop. 
    17 Hello and welcome to the tutorial getting started with ``for`` loop. 
    18 
    18 
    19 {{{ switch to next slide, outline slide }}}
    19 {{{ switch to next slide, outline slide }}}
    20 
    20 
    21 In this tutorial we will see ``for`` loops in python, and also cover
    21 In this tutorial we will learn about ``for`` loops in python, and also cover
    22 the basics of indenting code in python.
    22 the basics of indenting code in python.
    23 
    23 
    24 .. #[Nishanth]: Instead of saying basics of indenting code,
    24 .. #[Nishanth]: Instead of saying basics of indenting code,
    25                 say How to define code blocks in Python
    25                 say How to define code blocks in Python
    26 
    26 
    35 
    35 
    36 .. #[nishanth]: Simply tell how blocks are defined in python.
    36 .. #[nishanth]: Simply tell how blocks are defined in python.
    37                 The details like braces are not used and its
    37                 The details like braces are not used and its
    38                 advantages like neat code can be told after completely
    38                 advantages like neat code can be told after completely
    39                 explaining the indentation
    39                 explaining the indentation
       
    40 
       
    41 .. #[Amit]: Do you want to do that here. May be its better to talk about 
       
    42    this after some initiation into the idea of blocks. 
    40 
    43 
    41 A block may be defined by a suitable indentation level which can be
    44 A block may be defined by a suitable indentation level which can be
    42 either be a tab or few spaces. And the best practice is to indent the
    45 either be a tab or few spaces. And the best practice is to indent the
    43 code using four spaces.
    46 code using four spaces.
    44 
    47 
   262 
   265 
   263 Thus we come to the end of this tutorial. We learned about blocks in
   266 Thus we come to the end of this tutorial. We learned about blocks in
   264 Python, indentation, blocks in IPython, for loop, iterating over a
   267 Python, indentation, blocks in IPython, for loop, iterating over a
   265 list and then the ``range()`` function.
   268 list and then the ``range()`` function.
   266 
   269 
       
   270 .. #[Amit]: There does seem to too much overhead of details. Should
       
   271             the first example be done using script is it necessary. 
       
   272 	    Do add some things in evolutionary manner. Like introducing 
       
   273 	    range as a list and doing a very very simple for loop.Like
       
   274 	    iterating over [1,2,3] .Before getting into a problem.
       
   275 	    And club details about problem in one paragraph and syntactic details
       
   276 	    in other.
       
   277 
   267 {{{ switch to next slide, thank you slide }}}
   278 {{{ switch to next slide, thank you slide }}}
   268 
   279 
   269 Thank you!
   280 Thank you!
   270 
   281 
   271 ..  Author: Anoop Jacob Thomas <anoop@fossee.in>
   282 ..  Author: Anoop Jacob Thomas <anoop@fossee.in>