manipulating-strings/quickref.tex
changeset 522 d33698326409
parent 521 88a01948450d
child 523 54bdda4aefa5
--- a/manipulating-strings/quickref.tex	Wed Nov 17 23:24:57 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -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.