summaryrefslogtreecommitdiff
path: root/day2/session4.tex
diff options
context:
space:
mode:
Diffstat (limited to 'day2/session4.tex')
-rw-r--r--day2/session4.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/day2/session4.tex b/day2/session4.tex
index 7345b7e..eb89a2a 100644
--- a/day2/session4.tex
+++ b/day2/session4.tex
@@ -429,6 +429,28 @@ We have covered:
\end{document}
+%% \begin{frame}[fragile]
+%% \frametitle{\incqno}
+%% Consider a module called \lstinline+gcd.py+ looking like this:
+%% \begin{lstlisting}
+%% def gcd(a, b):
+%% ...
+
+%% if __name__ == '__main__':
+%% print gcd(10, 25)
+%% \end{lstlisting}
+%% If this module is imported, will it print the gcd of 10 and 25?
+%% \end{frame}
+
+%% \begin{frame}[fragile]
+%% \frametitle{\incqno}
+%% \begin{lstlisting}
+%% In [1]: print hello
+%% \end{lstlisting}
+%% Exactly what exception will you get if you run this on a fresh
+%% interpreter?
+%% \end{frame}
+
%% \begin{frame}
%% \frametitle{Testing}