manipulating-strings/script.rst
changeset 454 0c69c2b32183
parent 381 5415cb1bb4af
child 455 f5b7d0b693d9
equal deleted inserted replaced
453:b0e3f24bd78a 454:0c69c2b32183
    17 ..   #. basic datatypes
    17 ..   #. basic datatypes
    18      
    18      
    19 .. Author              : Puneeth 
    19 .. Author              : Puneeth 
    20    Internal Reviewer   : Amit 
    20    Internal Reviewer   : Amit 
    21    External Reviewer   :
    21    External Reviewer   :
       
    22    Language Reviewer   : Bhanukiran
    22    Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
    23    Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
    23 
    24 
    24 Script
    25 Script
    25 ------
    26 ------
    26 
    27 
    88 
    89 
    89 ::
    90 ::
    90 
    91 
    91     s[1:-1]
    92     s[1:-1]
    92 
    93 
    93 gives the a substring of s, without the first and the last
    94 gives a substring of s, without the first and the last
    94 characters. 
    95 characters of s. 
    95 
    96 
    96 ::
    97 ::
    97 
    98 
    98     s = saturday
    99     s = saturday
    99     s[:3]
   100     s[:3]