day1/session2.tex
changeset 160 058fad7c7d1d
parent 159 01f57cda252f
child 161 ff22fae4fde5
--- a/day1/session2.tex	Fri Oct 23 17:12:25 2009 +0530
+++ b/day1/session2.tex	Fri Oct 23 17:18:58 2009 +0530
@@ -246,7 +246,7 @@
 
 \begin{frame}[fragile]
   \frametitle{List: Slicing}
-  \typ{list[initial:final:step]}
+list[initial:final:step]
 \begin{lstlisting}
 In []: lst[1:3]  # A slice.
 Out[]: [2, 3]
@@ -259,15 +259,15 @@
 \begin{frame}[fragile]
   \frametitle{List methods}
 \begin{lstlisting}
-In []: lst.append([6,7])
+In []: lst.append(6)
 In []: lst
-Out[]: [1, 2, 3, 4, 5, [6, 7]]
+Out[]: [1, 2, 3, 4, 5, 6]
 \end{lstlisting}
 %\inctime{10}
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{\typ{for}}
+\frametitle{\texttt{for}}
 Used to iterate over lists\\ Let us look at another example.
 \begin{lstlisting}
 In []: lst = [1,2,3,4,5,6]