writing_python_scripts/script.rst
changeset 521 88a01948450d
parent 510 06561ee0f6a4
equal deleted inserted replaced
520:8249ae9d570a 521:88a01948450d
    10 .. Prerequisites
    10 .. Prerequisites
    11 .. -------------
    11 .. -------------
    12 .. 1. Using Python modules
    12 .. 1. Using Python modules
    13      
    13      
    14 .. Author              : Nishanth Amuluru
    14 .. Author              : Nishanth Amuluru
    15    Internal Reviewer   : 
    15    Internal Reviewer   : Punch
    16    External Reviewer   :
    16    External Reviewer   :
    17    Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
    17    Language Reviewer   : Bhanukiran
       
    18    Checklist OK?       : <15-11-2010, Anand, OK> [2010-10-05]
    18 
    19 
    19 Script
    20 Script
    20 ------
    21 ------
    21 
    22 
    22 {{{ Show the slide containing title }}}
    23 {{{ Show the slide containing title }}}
    44         while b:
    45         while b:
    45             a, b = b, a%b
    46             a, b = b, a%b
    46 
    47 
    47         return a
    48         return a
    48 
    49 
    49 We shall write an test function in the script that tests the gcd function every
    50 We shall write a test function in the script that tests the gcd function every
    50 time the script is run.
    51 time the script is run.
    51 
    52 
    52 {{{ Add to the script }}}
    53 {{{ Add to the script }}}
    53 
    54 
    54 ::
    55 ::