diff options
author | Puneeth Chaganti | 2009-10-06 14:54:44 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-10-06 14:54:44 +0530 |
commit | fbd0875aa4d148a4a02ad1b0dcdd01e96a8c9b40 (patch) | |
tree | 5c8728d9ee7d2b8c6694c009be7bab455be803ed /day1/Session-2.tex | |
parent | a7860fb51c55a0e44ede09f5becfb1be73410a04 (diff) | |
parent | de93abd3ae02175bec8805d7d43998a274621434 (diff) | |
download | workshops-more-scipy-fbd0875aa4d148a4a02ad1b0dcdd01e96a8c9b40.tar.gz workshops-more-scipy-fbd0875aa4d148a4a02ad1b0dcdd01e96a8c9b40.tar.bz2 workshops-more-scipy-fbd0875aa4d148a4a02ad1b0dcdd01e96a8c9b40.zip |
Merged with mainline.
Diffstat (limited to 'day1/Session-2.tex')
-rwxr-xr-x | day1/Session-2.tex | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/day1/Session-2.tex b/day1/Session-2.tex index 1e9fd96..d04e75d 100755 --- a/day1/Session-2.tex +++ b/day1/Session-2.tex @@ -249,10 +249,10 @@ def what( n, x ): \item Refer here: \url{http://docs.python.org/library/functions.html} \end{itemize} - \inctime{15} + \inctime{10} \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% TIME: 15 m, running 120m +% TIME: 10 m, running 30m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame}{Problem set 2} @@ -281,11 +281,11 @@ Write a program to print primitive pythagorean triads. The program should genera A pair of numbers (a, b) is said to be \alert{amicable} if the aliquot number of a is b and the aliquot number of b is a.\\ Example: \texttt{220, 284}\\ Write a program that prints all five digit amicable pairs. - \inctime{30} + \inctime{25} \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% TIME: 30 m, running 150m +% TIME: 25 m, running 55m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{Lists} @@ -370,8 +370,13 @@ What do you think the last one will do? >>> a [123, 1234, 12345] \end{lstlisting} +\inctime{10} \end{frame} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% TIME: 10 m, running 65m +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \begin{frame}[fragile] \frametitle{List methods} \begin{lstlisting} @@ -402,8 +407,13 @@ True >>> 'ell' in 'hello world' True \end{lstlisting} + \inctime{5} \end{frame} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% TIME: 5 m, running 70m +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \begin{frame}[fragile] \frametitle{Tuples: immutable} \begin{lstlisting} @@ -419,9 +429,13 @@ TypeError: object does not support item assignment \item Multiple return values are actually a tuple. \item Exchange is tuple (un)packing \end{itemize} - +\inctime{5} \end{frame} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% TIME: 5 m, running 75m +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \begin{frame}[fragile] \frametitle{\typ{range()} function} \begin{lstlisting} @@ -481,11 +495,11 @@ In [89]: for p, ch in enumerate( a ): 2 c \end{lstlisting} Try: \typ{print enumerate(a)} -\inctime{20} +\inctime{10} \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% TIME: 20 m, running 170m +% TIME: 10 m, running 85m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame} |