From 71b470de4c5b6dee3e59efd9d94d188e74622772 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Sun, 10 Jan 2010 16:57:51 +0530 Subject: Moved all day2 quiz questions to end of day2-sessions. --- day2/session4.tex | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'day2/session4.tex') 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} -- cgit