day1/session2.tex
changeset 276 4555c3814dd4
parent 275 71e50184d482
parent 263 8a4a1e5aec85
child 280 9bed85f05eb8
equal deleted inserted replaced
275:71e50184d482 276:4555c3814dd4
   263 Out[]: [2, 3, 4]
   263 Out[]: [2, 3, 4]
   264 \end{lstlisting}
   264 \end{lstlisting}
   265 \alert{\typ{list[initial:final]}}
   265 \alert{\typ{list[initial:final]}}
   266 \end{frame}
   266 \end{frame}
   267 
   267 
       
   268 %% more on list slicing
   268 \begin{frame}[fragile]
   269 \begin{frame}[fragile]
   269 \frametitle{List operations}
   270 \frametitle{List operations}
   270 \begin{lstlisting}
   271 \begin{lstlisting}
   271 In []: a = [ 6, 7, 8, 9]
   272 In []: a = [ 6, 7, 8, 9]
   272 In []: b = lst + a
   273 In []: b = lst + a