diff options
Diffstat (limited to 'day2/cheatsheet1.tex')
-rwxr-xr-x | day2/cheatsheet1.tex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/day2/cheatsheet1.tex b/day2/cheatsheet1.tex index a0d100b..ca1f38a 100755 --- a/day2/cheatsheet1.tex +++ b/day2/cheatsheet1.tex @@ -74,7 +74,8 @@ Out[]: e 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 |