diff options
Diffstat (limited to 'day1/Session-2.vrb')
-rw-r--r-- | day1/Session-2.vrb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/day1/Session-2.vrb b/day1/Session-2.vrb new file mode 100644 index 0000000..0b55248 --- /dev/null +++ b/day1/Session-2.vrb @@ -0,0 +1,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} |