From 5f91fcae4a93410621e09ca6b0f68b37b3f2ab14 Mon Sep 17 00:00:00 2001
From: Santosh G. Vattam
Date: Thu, 8 Oct 2009 22:48:06 +0530
Subject: Session 1 slides completed. Session 3 third iteration.

---
 day1/Session-1.tex | 50 ++++++++++++++++++++++++++++++--------------------
 1 file changed, 30 insertions(+), 20 deletions(-)

(limited to 'day1/Session-1.tex')

diff --git a/day1/Session-1.tex b/day1/Session-1.tex
index e17e9ae..ffa5d43 100755
--- a/day1/Session-1.tex
+++ b/day1/Session-1.tex
@@ -1,5 +1,5 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Tutorial slides on Python.
+%Tutorial slides on Python.
 %
 % Author: Prabhu Ramachandran <prabhu at aero.iitb.ac.in>
 % Copyright (c) 2005-2009, Prabhu Ramachandran
@@ -33,7 +33,7 @@
 
 \usepackage{listings}
 \lstset{language=Python,
-    basicstyle=\ttfamily,
+    basicstyle=\ttfamily\bfseries,
     commentstyle=\color{red}\itshape,
   stringstyle=\color{darkgreen},
   showstringspaces=false,
@@ -134,12 +134,16 @@
 %  * Add slides on reference counting.
 
 \section{Agenda}
-\begin{frame}{About the Workshop}
+\begin{frame}{About the Workshop, Day 1}
   \begin{description}
 	\item[Day 1, Session 1] Sat 09:30--11:00
 	\item[Day 1, Session 2] Sat 11:15--12:45
 	\item[Day 1, Session 3] Sat 13:45--15:15
 	\item[Day 1, Session 4] Sat 15:30--17:00
+  \end{description}
+\end{frame}
+\begin{frame}{About the Workshop, Day 2}
+  \begin{description}
         \item[Day 2, Quiz] Sun 09:00--09:30
         \item[Day 2, Session 1] Sun 09:30--11:00
 	\item[Day 2, Session 2] Sun 11:15--12:45
@@ -151,21 +155,22 @@
 \begin{frame}{About the Workshop}
   \begin{block}{Intended Audience}
   \begin{itemize}
-       \item Aimed at Engg., Mathematics and Science teachers.
+       \item Engg., Mathematics and Science teachers.
        \item Interested students from similar streams.
   \end{itemize}
   \end{block}  
 
-  \begin{block}{Goal}
-	Successful participants will be able to use python as their scripting and problem solving language. 
+  \begin{block}{Goal:}
+	Successful participants will be able to 
+        \begin{itemize}
+          \item use Python as their scripting and problem solving language. 
+          \item train the students to use Python for the same
+        \end{itemize}
   \end{block}
 \end{frame}
 
 \begin{frame}{Checklist}
-        \begin {block}{Live Python}
-          Have you booted using the Live Python DVD?
-        \end {block}
-	\begin{block}{python}
+        \begin{block}{python}
           Type python at the command line. Do you see version 2.5 or later?
         \end{block}
         \begin{block}{IPython}
@@ -308,7 +313,7 @@
   \end{center}
 \end{frame}
 
-\begin{frame}{More exercises?}
+\begin{frame}{More exercises}
   \begin{center}
     \begin{block}{Round sums}
       How to round a number to the nearest  5 paise?\\
@@ -508,7 +513,7 @@ Out[8]: False
   \end{block}
 \end{frame}
 
-\begin{frame}[fragile]{Surprise! strings!!}
+\begin{frame}[fragile]{String formatting}
   \begin{lstlisting}
 In [11]: x, y = 1, 1.2
 In [12]: 'x is %s, y is %s' %(x, y)
@@ -523,10 +528,15 @@ Out[12]: 'x is 1, y is 1.234'
 \end{frame}
 
 \begin{frame}
-  {Interlude}
+  {A classic problem}
   \begin{block}
-    {A classic problem}
-    How to interchange values of two variables? Please note that the type of either variable is unknown and it is not necessary that both be of the same type even!
+    {Interchange values}
+    How to interchange values of two variables? 
+  \end{block}
+  \pause
+  \begin{block}{Note:}
+    This Python idiom works for all types of variables.\\
+They need not be of the same type!
   \end{block}
   \inctime{30}
 \end{frame}
@@ -568,10 +578,9 @@ World
   \begin{itemize}
     \item aka scripts
     \item use your editor
-    \item Note that white space is the way to specify blocks!
     \item extension \typ{.py}
     \item run with \texttt{python hello.py} at the command line
-    \item in IPython\ldots
+    \item in IPython using \kwrd{\%run}
   \end{itemize}
 \end{frame}
 
@@ -627,10 +636,11 @@ while b < 10:
 \begin{frame}{So what have we learnt so far?}
   \begin{itemize}
     \item The interactive interpreter
-    \item Basic Data Types-Numbers
-    \item \typ{if/elif/else, while}
-    \item Simple IO
+    \item Basic Data Types
     \item Creating and running a Python script
+    \item \kwrd{if/elif/else}
+    \item Simple IO
+    \item Basic Looping with \kwrd{while}
   \end{itemize}
 \end{frame}
 \end{document}
-- 
cgit 

