diff options
Diffstat (limited to 'day1/cheatsheet2.tex')
-rwxr-xr-x | day1/cheatsheet2.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/day1/cheatsheet2.tex b/day1/cheatsheet2.tex index 0b61e7c..58076f6 100755 --- a/day1/cheatsheet2.tex +++ b/day1/cheatsheet2.tex @@ -119,11 +119,11 @@ In []: print greet.split() Out[]: ['hello', 'world'] In []: greet = ``hello, world'' In []: print greet.split(',') -Out[]: ['hello', ' world'] # Note the whitespace before 'world' +Out[]: ['hello', ' world'] # Note the white space before 'world' \end{lstlisting} A string can be split based on the delimiter specified within quotes. A combination of more than one delimiter can also be used.\\ \typ{In []: greet.split(', ')}\\ -\typ{Out[]: ['hello', 'world']}\\Note the whitespace is not there anymore. +\typ{Out[]: ['hello', 'world']}\\Note the white space is not there anymore. \newpage \section{Plotting from Files} \subsection{Opening files} |