# HG changeset patch # User Santosh G. Vattam # Date 1257227018 -19800 # Node ID 71e50184d4827e82b0c00524c1b16d09e9708f1f # Parent 34f71bdd0263036a15ad9aaf88548bf081e84b92 Updated session 2 day 1. diff -r 34f71bdd0263 -r 71e50184d482 day1/session2.tex --- a/day1/session2.tex Sat Oct 31 01:20:28 2009 +0530 +++ b/day1/session2.tex Tue Nov 03 11:13:38 2009 +0530 @@ -260,7 +260,7 @@ Out[]: [2, 3] In []: lst[1:-1] -Out[]: [2, 3] +Out[]: [2, 3, 4] \end{lstlisting} \alert{\typ{list[initial:final]}} \end{frame} @@ -268,10 +268,10 @@ \begin{frame}[fragile] \frametitle{List operations} \begin{lstlisting} -In []: anthrlst = [ 6, 7, 8, 9] -In []: lnglst = lst + anthrlst +In []: a = [ 6, 7, 8, 9] +In []: b = lst + a -In []: lnglst +In []: b Out[]: [1, 2, 3, 4, 5, 6, 7, 8, 9] In []: lst.append(6) @@ -452,7 +452,7 @@ \end{lstlisting} But, we need floating point numbers \begin{lstlisting} -In []: t = float(point[0]) +In []: t = float(points[0]) In []: type(t) Out[]: