diff options
author | Santosh G. Vattam | 2009-10-23 11:48:55 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2009-10-23 11:48:55 +0530 |
commit | 32183aa209b50bb79a3f01c15854eee3f1e1b49e (patch) | |
tree | 2e7b3d84ee1252427332daf845b303889a369358 /day2/session1.tex | |
parent | d79b224214eb193299ae21e5c55273a0f993b36d (diff) | |
parent | 99116fc300db484c24df43b26227baf215fbb880 (diff) | |
download | workshops-32183aa209b50bb79a3f01c15854eee3f1e1b49e.tar.gz workshops-32183aa209b50bb79a3f01c15854eee3f1e1b49e.tar.bz2 workshops-32183aa209b50bb79a3f01c15854eee3f1e1b49e.zip |
Merged branches.
Diffstat (limited to 'day2/session1.tex')
-rw-r--r-- | day2/session1.tex | 12 |
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} |