diff options
author | Puneeth Chaganti | 2010-01-10 16:57:51 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2010-01-10 16:57:51 +0530 |
commit | 71b470de4c5b6dee3e59efd9d94d188e74622772 (patch) | |
tree | 2b7425f5277941915706e732ddd0d6cb608fb808 /day2/session4.tex | |
parent | 268a25c7e1721e7a0c51080dd128b68d0ad3a4d5 (diff) | |
download | workshops-more-scipy-71b470de4c5b6dee3e59efd9d94d188e74622772.tar.gz workshops-more-scipy-71b470de4c5b6dee3e59efd9d94d188e74622772.tar.bz2 workshops-more-scipy-71b470de4c5b6dee3e59efd9d94d188e74622772.zip |
Moved all day2 quiz questions to end of day2-sessions.
Diffstat (limited to 'day2/session4.tex')
-rw-r--r-- | day2/session4.tex | 22 |
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} |