diff options
author | Santosh G. Vattam | 2009-11-03 11:13:38 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2009-11-03 11:13:38 +0530 |
commit | 77c59d319fa3012914c0c48a42377fa22ea69b4b (patch) | |
tree | 40f6b89eb5c312f240c9920f5e0bad3197879404 | |
parent | b466cde21f0ca66b5c1bfc5cb8d123b3c979536e (diff) | |
download | workshops-more-scipy-77c59d319fa3012914c0c48a42377fa22ea69b4b.tar.gz workshops-more-scipy-77c59d319fa3012914c0c48a42377fa22ea69b4b.tar.bz2 workshops-more-scipy-77c59d319fa3012914c0c48a42377fa22ea69b4b.zip |
Updated session 2 day 1.
-rw-r--r-- | day1/session2.tex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/day1/session2.tex b/day1/session2.tex index 0473129..6ebd58a 100644 --- a/day1/session2.tex +++ b/day1/session2.tex @@ -260,7 +260,7 @@ In []: lst[1:3] # A slice. 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 @@ Out[]: [2, 3] \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 @@ Out[]: <type 'str'> \end{lstlisting} But, we need floating point numbers \begin{lstlisting} -In []: t = float(point[0]) +In []: t = float(points[0]) In []: type(t) Out[]: <type 'float'> |