day1/session3.tex
changeset 387 5e485a5d8ac4
parent 385 c70118cdde66
child 389 aa392117454f
--- a/day1/session3.tex	Tue Apr 27 12:14:30 2010 +0530
+++ b/day1/session3.tex	Tue Apr 27 15:20:28 2010 +0530
@@ -311,6 +311,22 @@
 \end{frame}
 
 \begin{frame}[fragile]
+  \frametitle{Inserting elements into dictionary}
+  \emphbar{\alert{d[key] = value}}
+  \begin{lstlisting}
+    In []: d['bin'] = 'binary file'
+    In []: d
+    Out[]: 
+    {'bin': 'binary file',
+     'cpp': 'complex code',
+     'java': 'bad code',
+     'png': 'image file',
+     'py': 'python code',
+     'txt': 'text file'}
+  \end{lstlisting}
+\end{frame}
+
+\begin{frame}[fragile]
   \frametitle{Getting back to the problem}
   Let our dictionary be:
   \begin{lstlisting}