diff -r adb85e126341 -r 19754ed6050f day2/session4.tex --- a/day2/session4.tex Sun Jan 10 16:43:15 2010 +0530 +++ b/day2/session4.tex Sun Jan 10 16:57:51 2010 +0530 @@ -429,6 +429,28 @@ \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}