day1/Session-2.vrb
author Santosh G. Vattam <vattam.santosh@gmail.com>
Thu, 08 Oct 2009 22:48:06 +0530
changeset 74 a476c09dcf24
parent 46 63704b5650f1
permissions -rw-r--r--
Session 1 slides completed. Session 3 third iteration.

\frametitle {\typ{for}: the list companion}
  \begin{lstlisting}
In [89]: for p, ch in enumerate( a ):
   ....:     print p, ch
   ....:
   ....:
0 a
1 b
2 c
  \end{lstlisting}
Try: \typ{print enumerate(a)}
\inctime{10}