dictionaries/script.rst
changeset 370 7419836c90c1
parent 355 75a182d6e908
child 478 5083394605e0
equal deleted inserted replaced
369:8988867e0470 370:7419836c90c1
    16 ..   1. should have ``ipython``  installed. 
    16 ..   1. should have ``ipython``  installed. 
    17 ..   #. getting started with ``ipython``.
    17 ..   #. getting started with ``ipython``.
    18 ..   #. basic datatypes.
    18 ..   #. basic datatypes.
    19      
    19      
    20 .. Author              : Anoop Jacob Thomas <anoop@fossee.in>
    20 .. Author              : Anoop Jacob Thomas <anoop@fossee.in>
    21    Internal Reviewer   : 
    21    Internal Reviewer   : Puneeth
    22    External Reviewer   :
    22    External Reviewer   :
    23    Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
    23    Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
    24 
    24 
    25 .. #[Puneeth: Quickref]
    25 .. #[Puneeth: Quickref]
    26 
    26 
    45 specific key and retrieve the corresponding value. Dictionaries are
    45 specific key and retrieve the corresponding value. Dictionaries are
    46 data structures that provide key-value mappings.  Dictionaries are
    46 data structures that provide key-value mappings.  Dictionaries are
    47 similar to lists except that instead of the values having integer
    47 similar to lists except that instead of the values having integer
    48 indexes, dictionaries have keys or strings as indexes.
    48 indexes, dictionaries have keys or strings as indexes.
    49 
    49 
    50 Before we can proceed, start your IPython interpreter with the
    50 We need ipython interpreter for this tutorial, start it by issuing the
    51 ``-pylab`` option.
    51 command ``ipython`` in command line.
    52 
    52 
    53 .. #[Puneeth: We don't need pylab]
    53 .. #[Puneeth: We don't need pylab]
    54 
    54 
    55 {{{ start ipython interpreter by issuing command ipython -pylab }}}
    55 {{{ start ipython interpreter by issuing command ipython }}}
    56 
    56 
    57 {{{ switch to next slide, Creating dictionary }}}
    57 {{{ switch to next slide, Creating dictionary }}}
    58 
    58 
    59 Let us start by creating an empty dictionary, type the following in
    59 Let us start by creating an empty dictionary, type the following in
    60 your IPython interpreter.
    60 your IPython interpreter.