summaryrefslogtreecommitdiff
path: root/day1/session3.tex
diff options
context:
space:
mode:
authorSantosh G. Vattam2010-04-27 15:20:28 +0530
committerSantosh G. Vattam2010-04-27 15:20:28 +0530
commitaeb424782a888813d5c56ea885665f8a85a21d89 (patch)
tree82cf7e9671897cb7b3c7e03bca24314b6e0aa5d8 /day1/session3.tex
parent8c5dc893d695e91e5068e3719be9ead30e75d2e0 (diff)
downloadworkshops-aeb424782a888813d5c56ea885665f8a85a21d89.tar.gz
workshops-aeb424782a888813d5c56ea885665f8a85a21d89.tar.bz2
workshops-aeb424782a888813d5c56ea885665f8a85a21d89.zip
Minor corrections post SVCE.
Diffstat (limited to 'day1/session3.tex')
-rw-r--r--day1/session3.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/day1/session3.tex b/day1/session3.tex
index 4a7591d..187bf5c 100644
--- a/day1/session3.tex
+++ b/day1/session3.tex
@@ -311,6 +311,22 @@ Out[]: ['complex code', 'python code',
\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}