day1/Session-4.tex
changeset 54 c3fe152b3539
parent 50 aabaf8ec0a08
child 59 9aac0f128482
equal deleted inserted replaced
51:d3a8a9556a90 54:c3fe152b3539
   108 
   108 
   109 \begin{frame}
   109 \begin{frame}
   110   \titlepage
   110   \titlepage
   111 \end{frame}
   111 \end{frame}
   112 
   112 
   113 \section{Python}
   113 \section{Advanced Data structures, Functions and Debugging}
   114 
   114 
   115 \subsection{Dictionary}
   115 \subsection{Dictionary}
   116 \begin{frame}{Dictionary}
   116 \begin{frame}{Dictionary}
   117   \begin{itemize}
   117   \begin{itemize}
   118     \item aka associative arrays, key-value pairs, hashmaps, hashtables \ldots    
       
   119     \item \typ{ d = \{ ``Hitchhiker's guide'' : 42, ``Terminator'' : ``I'll be back''\}}
       
   120     \item lists and tuples index: 0 \ldots n
   118     \item lists and tuples index: 0 \ldots n
   121     \item dictionaries index using strings
   119     \item dictionaries index using strings
   122     \item aka key-value pairs
   120     \item \typ{ d = \{ ``Hitchhiker's guide'' : 42, ``Terminator'' : ``I'll be back''\}}
       
   121     \item \typ{d[``Terminator'']\\``I'll be back''}
       
   122     \item aka associative array, key-value pair, hashmap, hashtable \ldots    
   123     \item what can be keys?
   123     \item what can be keys?
   124   \end{itemize}
   124   \end{itemize}
   125 \end{frame}
   125 \end{frame}
   126 
   126 
   127 \begin{frame}{Dictionary \ldots }
   127 \begin{frame}{Dictionary \ldots }