dictionaries/script.rst
changeset 486 591369704df0
parent 479 9c2e9213898c
equal deleted inserted replaced
485:fd3902300f20 486:591369704df0
    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   : Puneeth
    21    Internal Reviewer   : Puneeth
    22    External Reviewer   :
    22    External Reviewer   :
    23    Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
    23    Language Reviewer   : Bhanukiran
       
    24    Checklist OK?       : <11-11-2010, Anand, OK> [2010-10-05]
    24 
    25 
    25 .. #[Puneeth: Quickref]
    26 .. #[Puneeth: Quickref]
    26 
    27 
    27 ============
    28 ============
    28 Dictionaries
    29 Dictionaries
   137 ::
   138 ::
   138 
   139 
   139     extensions['cpp'] = 'C++ source code'
   140     extensions['cpp'] = 'C++ source code'
   140     extensions
   141     extensions
   141 
   142 
   142 As you can see, it did not add a new thing nor gave an error, but it
   143 As you can see, it neither added a new thing nor gave an error, but it
   143 simply replaces the existing value with the new one.
   144 simply replaced the existing value with the new one.
   144 
   145 
   145 Now let us learn how to check if a particular key is present in the
   146 Now let us learn how to check if a particular key is present in the
   146 dictionary. For that we can use ``in``,
   147 dictionary. For that we can use ``in``,
   147 ::
   148 ::
   148 
   149