equal
deleted
inserted
replaced
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 |