python STRINGS
<p>Jan 24, 2013 12:52 PM  see below for SPLIT
 
>>> name1 = 'bob'
 
>>> name1
'bob'
>>> name2 = 'blum'
 
>>> <b>fullname = name1 + name2 </b>  ....
 
>>> fullname
'bobblum'
 
>>> bkwd =<b> fullname[7:0:-1] + fullname[0]</b>
 
>>> bkwd
'mulbbob'
 
fullname[0:3] => 'bob'   ## the first 3 chars in the string starting at the zeroeth.
 
 
string concat method
create a list
sean = ['a','b']
''.join(sean)  =>        'ab'
or if u do
','  it will =>  'a,b'   string with 3 chars
 
pets
['dog', 'cat', 'gerbil']
 
>>> petstring = ''.join(pets)   #note here: that is NOT a double quote; it is two single quotes
#ie, that is the character (null string) to insert into the concatenated strings.
>>> petstring
'dogcatgerbil'
>>> pets
['dog', 'cat', 'gerbil']
 
>>> petstring = '&'.join(pets)  # here an & will be inserted btwn instead of a null string.
 
>>> petstring
'dog&cat&gerbil'
 
>>> newpets = petstring[0:3] + petstring[4:7]
>>> newpets
'dogcat'
 
 SPLIT
 
>>> 'klfjdlfd ieutoiweut 394853'.split(' ') =>  [strg1 ,strg 2 ,  strg3]  # this SPLITs the string
 
        # using space as the break char... ie delimited by whatever is btwn the quotes,
        #  so,  '$'  wll break at the $ .
 
>>> sample = "sljflksd$sljdlfsj$wioreu"
 
>>> sample
'sljflksd$sljdlfsj$wioreu'
 
>>> samplewords = sample.split('$')
 
>>> samplewords
['sljflksd', 'sljdlfsj', 'wioreu']    SPLIT
 
 </p>