day2/cheatsheet1.tex
changeset 327 c78cad28c2f7
parent 321 8bf99f747817
child 329 0a6ab1d81491
--- a/day2/cheatsheet1.tex	Tue Nov 24 11:00:52 2009 +0530
+++ b/day2/cheatsheet1.tex	Wed Nov 25 12:11:03 2009 +0530
@@ -74,7 +74,8 @@
 In []: print w[-1] #last character of string
 Out[]: o
   \end{lstlisting}
-\textbf{Note:} For a string variable, individual elements can be accessed using indices.
+\textbf{Note:} For a string variable, individual elements can be accessed using indices.\\
+\textbf{Note:} All slicing and striding operations works with strings as well.
   \begin{lstlisting}
 In []: len(w) #function to calculate length of string
 Out[]: 5