blob: 0b55248cf53b082a8c4809ed73cc6f0034e2b05b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
\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}
|