summaryrefslogtreecommitdiff
path: root/day1/Session-4.tex
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-10-09 13:20:08 +0530
committerMadhusudan.C.S2009-10-09 13:20:08 +0530
commit52c6683bb2792631e91481e74786dc6bf569e312 (patch)
treeb387d694842adb4fa7523cdf94350965b6728301 /day1/Session-4.tex
parentd1bcdc4243d67495c1e23fdff1b528843472ac4d (diff)
downloadworkshops-52c6683bb2792631e91481e74786dc6bf569e312.tar.gz
workshops-52c6683bb2792631e91481e74786dc6bf569e312.tar.bz2
workshops-52c6683bb2792631e91481e74786dc6bf569e312.zip
Added emphbar to boxes in Session 2.
Diffstat (limited to 'day1/Session-4.tex')
-rwxr-xr-xday1/Session-4.tex15
1 files changed, 2 insertions, 13 deletions
diff --git a/day1/Session-4.tex b/day1/Session-4.tex
index c80d566..a4a25b0 100755
--- a/day1/Session-4.tex
+++ b/day1/Session-4.tex
@@ -89,11 +89,11 @@
%% Delete this, if you do not want the table of contents to pop up at
%% the beginning of each subsection:
-\AtBeginSubsection[]
+\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Outline}
- \tableofcontents[currentsection,currentsubsection]
+ \tableofcontents[currentsection,subsections]
\end{frame}
}
@@ -297,17 +297,6 @@ squares = [i*i for i in range(1, 100)
if i % 10 in [1, 2, 5, 7]]
\end{lstlisting}
Which is more readable?
-\end{frame}
-
-\begin{frame}[fragile]
- \frametitle{map() function}
- map() function accomplishes the same as list comprehensions
- \begin{lstlisting}
->>> def square(x): return x*x
-...
->>> map(square, range(1, 100))
-[1, 8, 27, 64, 125, 216, 343, 512, 729, 1000]
- \end{lstlisting}
\inctime{15}
\end{frame}