day1/session2.tex
changeset 163 f7aeeedb9aa3
parent 162 1af425d33eba
child 179 eea01ca072ff
equal deleted inserted replaced
162:1af425d33eba 163:f7aeeedb9aa3
   345 \begin{frame}[fragile]
   345 \begin{frame}[fragile]
   346 \frametitle{Strings and \typ{split()}}
   346 \frametitle{Strings and \typ{split()}}
   347   \begin{lstlisting}
   347   \begin{lstlisting}
   348 In []: line = 'hello world'
   348 In []: line = 'hello world'
   349 
   349 
   350 In []: a.split()
   350 In []: line.split()
   351 Out[]: ['hello', 'world']
   351 Out[]: ['hello', 'world']
   352   \end{lstlisting}
   352   \end{lstlisting}
   353 This is what happens with \typ{line}
   353 This is what happens with \typ{line}
   354   \begin{lstlisting}
   354   \begin{lstlisting}
   355 In []: line = '1.2000e-01 7.4252e-01'
   355 In []: line = '1.2000e-01 7.4252e-01'