day1/Session-2.vrb
changeset 75 090d03e43e95
parent 74 a476c09dcf24
parent 73 9a93e8901e99
child 76 b24c2560f626
child 79 04b620d3f172
equal deleted inserted replaced
74:a476c09dcf24 75:090d03e43e95
     1 \frametitle {\typ{for}: the list companion}
       
     2   \begin{lstlisting}
       
     3 In [89]: for p, ch in enumerate( a ):
       
     4    ....:     print p, ch
       
     5    ....:
       
     6    ....:
       
     7 0 a
       
     8 1 b
       
     9 2 c
       
    10   \end{lstlisting}
       
    11 Try: \typ{print enumerate(a)}
       
    12 \inctime{10}