summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-10-03 23:50:35 +0530
committerMadhusudan.C.S2009-10-03 23:50:35 +0530
commit1fda650b68d31be6ee5d6a0af373f22a9da0d0fd (patch)
treefff90243dda0ad9d6107dc32a4d873dfcb2c9082
parentac1f681846575b25ef481034225de8de40ce0f02 (diff)
downloadworkshops-1fda650b68d31be6ee5d6a0af373f22a9da0d0fd.tar.gz
workshops-1fda650b68d31be6ee5d6a0af373f22a9da0d0fd.tar.bz2
workshops-1fda650b68d31be6ee5d6a0af373f22a9da0d0fd.zip
Added inctime to Day-1 Session 2 slides.
-rwxr-xr-xday1/Session-2.tex28
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}