equal
deleted
inserted
replaced
426 % \item Writting and running tests. |
426 % \item Writting and running tests. |
427 \end{itemize} |
427 \end{itemize} |
428 \end{frame} |
428 \end{frame} |
429 |
429 |
430 \end{document} |
430 \end{document} |
|
431 |
|
432 %% \begin{frame}[fragile] |
|
433 %% \frametitle{\incqno} |
|
434 %% Consider a module called \lstinline+gcd.py+ looking like this: |
|
435 %% \begin{lstlisting} |
|
436 %% def gcd(a, b): |
|
437 %% ... |
|
438 |
|
439 %% if __name__ == '__main__': |
|
440 %% print gcd(10, 25) |
|
441 %% \end{lstlisting} |
|
442 %% If this module is imported, will it print the gcd of 10 and 25? |
|
443 %% \end{frame} |
|
444 |
|
445 %% \begin{frame}[fragile] |
|
446 %% \frametitle{\incqno} |
|
447 %% \begin{lstlisting} |
|
448 %% In [1]: print hello |
|
449 %% \end{lstlisting} |
|
450 %% Exactly what exception will you get if you run this on a fresh |
|
451 %% interpreter? |
|
452 %% \end{frame} |
431 |
453 |
432 %% \begin{frame} |
454 %% \begin{frame} |
433 %% \frametitle{Testing} |
455 %% \frametitle{Testing} |
434 |
456 |
435 %% \begin{itemize} |
457 %% \begin{itemize} |