diff options
author | Puneeth Chaganti | 2010-12-01 16:51:35 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2010-12-01 16:51:35 +0530 |
commit | f3a34dfb4e879f3eb7274704f44546aac4add88f (patch) | |
tree | 1cb0a8cc5dbd5ee2b374350915ed2addfa0fb447 /manipulating-strings/quickref.tex | |
parent | 347866ed0d29db61ee062563b1e1616cfb85588c (diff) | |
download | st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.tar.gz st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.tar.bz2 st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.zip |
Renamed all LOs to match with their names in progress.org.
Diffstat (limited to 'manipulating-strings/quickref.tex')
-rw-r--r-- | manipulating-strings/quickref.tex | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/manipulating-strings/quickref.tex b/manipulating-strings/quickref.tex deleted file mode 100644 index 533a1ef..0000000 --- a/manipulating-strings/quickref.tex +++ /dev/null @@ -1,14 +0,0 @@ -\textbf{Manipulating strings} - -String indexing starts from 0, like lists. - -\lstinline|s = `Hello World'|\\ -\lstinline|s[0:5]| gives \texttt{Hello}\\ -\lstinline|s[6:]| gives \textt{World}\\ -\lstinline|s[6::2]| gives \textt{Wrd}\\ - -\lstinline|s.replace('e', 'a')| returns a new string with all e's -replaced by a. - -\lstinline|s.lower()| and \lstinline|s.upper()| return new strings -with all lower and upper case letters, respectively. |