summaryrefslogtreecommitdiff
path: root/day2
diff options
context:
space:
mode:
authorShantanu Choudhary2009-10-23 00:40:55 +0530
committerShantanu Choudhary2009-10-23 00:40:55 +0530
commita5eaee62b62206d1c6c3be95c1d2c03be41d24ed (patch)
treed518e74ffcd26f3e83cc89e702b330111e5adf8e /day2
parent0c4ff81fda85f13be31a72e5307b0a2555fad9d4 (diff)
downloadworkshops-a5eaee62b62206d1c6c3be95c1d2c03be41d24ed.tar.gz
workshops-a5eaee62b62206d1c6c3be95c1d2c03be41d24ed.tar.bz2
workshops-a5eaee62b62206d1c6c3be95c1d2c03be41d24ed.zip
Added changes suggested by PR for session 1 day 1.
Diffstat (limited to 'day2')
-rw-r--r--day2/session1.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/day2/session1.tex b/day2/session1.tex
index f51ce54..e77e6df 100644
--- a/day2/session1.tex
+++ b/day2/session1.tex
@@ -343,11 +343,11 @@ Out[]: [8, 7, 6, 5, 4, 3, 2, 1]
In []: lst.extend([0, -1, -2])
In []: lst
-Out[]: [8, 7, 6, 5, 4, 3, 2, 1, 0, -1, -2]
+Out[]: [8, 7, 6, 5, 4, 3, 2, 1, 0, -1]
In []: lst.remove(0)
In []: lst
-Out[]: [8, 7, 6, 5, 4, 3, 2, 1, -1, -2]
+Out[]: [8, 7, 6, 5, 4, 3, 2, 1, -1]
\end{lstlisting}
\end{frame}
@@ -392,16 +392,16 @@ Out[]: 13
\frametitle{Dictionaries}
\alert {lists and tuples: integer indexes :: dictionaries: string indexes}
\begin{lstlisting}
-In []: player = {'Mat': 134, 'Inn': 233, 'Runs': 10823, 'Avg': 52.53}
+In []: player = {'Mat': 134,'Inn': 233,
+ 'Runs': 10823, 'Avg': 52.53}
In []: player['Avg']
Out[]: 52.530000000000001
-
In []: player.keys()
Out[]: ['Runs', 'Inn', 'Avg', 'Mat']
-
In []: player.values()
-Out[]: [10823, 233, 52.530000000000001, 134]
+Out[]: [10823, 233,
+ 52.530000000000001, 134]
\end{lstlisting}
\end{frame}