diff options
author | Santosh G. Vattam | 2010-04-27 15:20:28 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2010-04-27 15:20:28 +0530 |
commit | aeb424782a888813d5c56ea885665f8a85a21d89 (patch) | |
tree | 82cf7e9671897cb7b3c7e03bca24314b6e0aa5d8 /day1/session3.tex | |
parent | 8c5dc893d695e91e5068e3719be9ead30e75d2e0 (diff) | |
download | workshops-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.tex | 16 |
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} |