# HG changeset patch # User Madhusudan.C.S # Date 1256637908 -19800 # Node ID c972092fa463a621257a6788f615b3f7d0e43a7f # Parent 3068ec210c51557606671c69fbed6f97cecd52f7# Parent baf196170c082cebd31cd0fbb13e104029240453 Merged Madhu and Mainline branches. diff -r 3068ec210c51 -r c972092fa463 day1/session2.tex --- a/day1/session2.tex Tue Oct 27 15:34:43 2009 +0530 +++ b/day1/session2.tex Tue Oct 27 15:35:08 2009 +0530 @@ -135,7 +135,7 @@ \begin{frame} \frametitle{But its impractical..} \begin{itemize} - \item We can't keep running the IPython shell for days + \item We can't keep running IPython for days \item And its a pain to go back and edit \end{itemize} And the solution is..\\ @@ -233,6 +233,9 @@ \begin{frame}[fragile] \frametitle{List: Slicing} + \begin{block}{Remember\ldots} + In []: lst = [1,2,3,4,5] + \end{block} \alert{\typ{list[initial:final:step]}} \begin{lstlisting} In []: lst[1:3] # A slice. @@ -244,7 +247,7 @@ \end{frame} \begin{frame}[fragile] - \frametitle{List concatenation and list methods} + \frametitle{List operations} \begin{lstlisting} In []: anthrlst = [6,7,8,9] In []: lnglst = lst + anthrlst