Updated session 1 slides.
--- a/day1/Session-1.tex Tue Oct 06 18:45:01 2009 +0530
+++ b/day1/Session-1.tex Wed Oct 07 00:49:14 2009 +0530
@@ -78,7 +78,7 @@
\author[Asokan \& Prabhu] {Asokan Pichai\\Prabhu Ramachandran}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {10, October 2009}
+\date[] {Day 1, Session-1, 10, October 2009}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -140,6 +140,7 @@
\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
+ \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
\item[Day 2, Session 3] Sun 13:45--15:15
@@ -147,17 +148,15 @@
\end{description}
\end{frame}
-\section{Agenda}
\begin{frame}{About the Workshop}
- \begin{block}{Goal of the workshop}
+ \begin{block}{Intended Audience}
+ \item Aimed at Engg., Mathematics and Science teachers.
+ \item Interested students from similar streams.
+ \end{block}
+
+ \begin{block}{Goal}
Successful participants will be able to use python as their scripting and problem solving language.
\end{block}
- \begin{block}{Workshop Audience}
- Aimed at Engg., Mathematics and Science teachers but should serve a similar purpose for others.
- \end{block}
- \begin{block}{Focus of the workshop}
- Focus on basic numerics and plotting
- \end{block}
\end{frame}
\begin{frame}{Checklist}
@@ -173,27 +172,12 @@
\end{frame}
\section{Overview}
-\begin{frame}{Session 1}
- \begin{itemize}
- \item Introduction and motivation
- \item Using the interpreter(s)
- \item Basic data types: int, float, string
- \item Basic data structures: list
- \item Basic console IO: \texttt{raw\_input(), print}
- \item Basic control flow: \texttt{if, while}
- \item Problem set 1
- \item Functions $\rightarrow$ Problem set 2
- \item lists, \texttt{for} $\rightarrow$ Problem set 3
- \item IO, Modules $\rightarrow$ Problem sets 4,5, \ldots
- \end{itemize}
-\end{frame}
-
\begin{frame}
\frametitle{Introduction}
\begin{itemize}
\item Creator and BDFL: Guido van Rossum
\item December 1989
- \item ``Python'' as in Monty Python's Flying Circus
+ \item ``Python'' as in \it Monty Python's Flying Circus
\item 2.6.x
\item PSF license (like BSD: no strings attached)
\item Highly cross platform
@@ -609,7 +593,7 @@
\end{block}
\begin{block}
{Console output}
- \texttt{print} is straight forward. Major point to remember is the distinction between \texttt{print x} and \texttt{print x,}
+ \texttt{print} is straight forward. Note the distinction between \texttt{print x} and \texttt{print x,}
\end{block}
\end{frame}
--- a/day1/Session-3.tex Tue Oct 06 18:45:01 2009 +0530
+++ b/day1/Session-3.tex Wed Oct 07 00:49:14 2009 +0530
@@ -78,7 +78,7 @@
\author[Asokan \& Prabhu] {Asokan Pichai\\Prabhu Ramachandran}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {10, October 2009}
+\date[] {Day 1, Session-3, 10, October 2009}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -112,6 +112,8 @@
\section{Python}
+\subsection{Problem Set based on Lists and Tuples}
+
\begin{frame}
{Problem set 3}
As you can guess, idea is to use \kwrd{for}!
@@ -224,11 +226,11 @@
subjects, the student with the maximum mark in each subject and also
the standard deviation of the marks. Do this efficiently.
- \inctime{20}
+ \inctime{30}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% TIME: 20 m, running 205m
+% TIME: 30 m, running 215m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Modules}
@@ -335,47 +337,14 @@
\frametitle{Problem 5.1}
Put all the functions you have written so far as part of the problems
- into one module called \typ{iitb.py} and use this module from IPython.
+ into one module called \typ{bprim.py} and use this module from IPython.
-\inctime{20}
+\inctime{25}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% TIME: 20 m, running 225m
+% TIME: 25 m, running 230m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\subsection{Objects}
-\begin{frame}{Objects in Python}
- \begin{itemize}
- \item What is an Object? (Types and classes)
- \item identity
- \item type
- \item method
- \end{itemize}
-\end{frame}
-
-\begin{frame}[fragile]
- \frametitle{Why are they useful?}
- \small
- \begin{lstlisting}
-for element in (1, 2, 3):
- print element
-for key in {'one':1, 'two':2}:
- print key
-for char in "123":
- print char
-for line in open("myfile.txt"):
- print line
-for line in urllib2.urlopen('http://site.com'):
- print line
- \end{lstlisting}
-\end{frame}
-
-\begin{frame}{And the winner is \ldots OBJECTS!}
- All objects providing a similar inteface can be used the same way.\\
- Functions (and others) are first-class objects. Can be passed to and returned from functions.
- \inctime{10}
-\end{frame}
-
\subsection{Coding Style in Python}
\begin{frame}{Readability and Consistency}
\begin{itemize}
@@ -418,6 +387,41 @@
\item Ending the docstrings
\item One liner docstrings
\end{itemize}
+\inctime{10}
\end{frame}
-\inctime{10}
+
+
+\subsection{Objects}
+\begin{frame}{Objects in Python}
+ \begin{itemize}
+ \item What is an Object? (Types and classes)
+ \item identity
+ \item type
+ \item method
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Why are they useful?}
+ \small
+ \begin{lstlisting}
+for element in (1, 2, 3):
+ print element
+for key in {'one':1, 'two':2}:
+ print key
+for char in "123":
+ print char
+for line in open("myfile.txt"):
+ print line
+for line in urllib2.urlopen('http://site.com'):
+ print line
+ \end{lstlisting}
+\end{frame}
+
+\begin{frame}{And the winner is \ldots OBJECTS!}
+ All objects providing a similar inteface can be used the same way.\\
+ Functions (and others) are first-class objects. Can be passed to and returned from functions.
+ \inctime{10}
+\end{frame}
+
\end{document}