day1/session2.tex
changeset 263 8a4a1e5aec85
parent 253 e446ed7287d7
child 276 4555c3814dd4
equal deleted inserted replaced
262:9664eddee075 263:8a4a1e5aec85
   258 In []: lst[1:-1]
   258 In []: lst[1:-1]
   259 Out[]: [2, 3]
   259 Out[]: [2, 3]
   260 \end{lstlisting}
   260 \end{lstlisting}
   261 \end{frame}
   261 \end{frame}
   262 
   262 
       
   263 %% more on list slicing
   263 \begin{frame}[fragile]
   264 \begin{frame}[fragile]
   264 \frametitle{List operations}
   265 \frametitle{List operations}
   265 \begin{lstlisting}
   266 \begin{lstlisting}
   266 In []: anthrlst = [6,7,8,9]
   267 In []: anthrlst = [6,7,8,9]
   267 In []: lnglst = lst + anthrlst
   268 In []: lnglst = lst + anthrlst