day1/Session-1.tex
changeset 47 21de307e6823
parent 42 3e554af428a4
child 48 7f4c51382f89
equal deleted inserted replaced
43:ef2afc5ceb3f 47:21de307e6823
    76 \title[Basic Python]{Python:\\A great programming toolkit}
    76 \title[Basic Python]{Python:\\A great programming toolkit}
    77 
    77 
    78 \author[Asokan \& Prabhu] {Asokan Pichai\\Prabhu Ramachandran}
    78 \author[Asokan \& Prabhu] {Asokan Pichai\\Prabhu Ramachandran}
    79 
    79 
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    81 \date[] {10, October 2009}
    81 \date[] {Day 1, Session-1, 10, October 2009}
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    83 
    83 
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    85 %\logo{\pgfuseimage{iitmlogo}}
    85 %\logo{\pgfuseimage{iitmlogo}}
    86 
    86 
   138   \begin{description}
   138   \begin{description}
   139 	\item[Day 1, Session 1] Sat 09:30--11:00
   139 	\item[Day 1, Session 1] Sat 09:30--11:00
   140 	\item[Day 1, Session 2] Sat 11:15--12:45
   140 	\item[Day 1, Session 2] Sat 11:15--12:45
   141 	\item[Day 1, Session 3] Sat 13:45--15:15
   141 	\item[Day 1, Session 3] Sat 13:45--15:15
   142 	\item[Day 1, Session 4] Sat 15:30--17:00
   142 	\item[Day 1, Session 4] Sat 15:30--17:00
       
   143         \item[Day 2, Quiz] Sun 09:00--09:30
   143         \item[Day 2, Session 1] Sun 09:30--11:00
   144         \item[Day 2, Session 1] Sun 09:30--11:00
   144 	\item[Day 2, Session 2] Sun 11:15--12:45
   145 	\item[Day 2, Session 2] Sun 11:15--12:45
   145 	\item[Day 2, Session 3] Sun 13:45--15:15
   146 	\item[Day 2, Session 3] Sun 13:45--15:15
   146 	\item[Day 2, Session 4] Sun 15:30--17:00
   147 	\item[Day 2, Session 4] Sun 15:30--17:00
   147   \end{description}
   148   \end{description}
   148 \end{frame}
   149 \end{frame}
   149 
   150 
   150 \section{Agenda}
       
   151 \begin{frame}{About the Workshop}
   151 \begin{frame}{About the Workshop}
   152   \begin{block}{Goal of the workshop}
   152   \begin{block}{Intended Audience}
       
   153        \item Aimed at Engg., Mathematics and Science teachers.
       
   154        \item Interested students from similar streams.
       
   155   \end{block}  
       
   156 
       
   157   \begin{block}{Goal}
   153 	Successful participants will be able to use python as their scripting and problem solving language. 
   158 	Successful participants will be able to use python as their scripting and problem solving language. 
   154   \end{block}
       
   155   \begin{block}{Workshop Audience}
       
   156         Aimed at Engg., Mathematics and Science teachers  but should serve a similar purpose for others. 
       
   157   \end{block}
       
   158   \begin{block}{Focus of the workshop}
       
   159         Focus on basic numerics and plotting
       
   160   \end{block}
   159   \end{block}
   161 \end{frame}
   160 \end{frame}
   162 
   161 
   163 \begin{frame}{Checklist}
   162 \begin{frame}{Checklist}
   164 	\begin{block}{python}
   163 	\begin{block}{python}
   171           Which editor? scite, vim, emacs, \ldots
   170           Which editor? scite, vim, emacs, \ldots
   172         \end{block}
   171         \end{block}
   173 \end{frame}
   172 \end{frame}
   174 
   173 
   175 \section{Overview}
   174 \section{Overview}
   176 \begin{frame}{Session 1}
       
   177   \begin{itemize}
       
   178 	\item Introduction and motivation
       
   179 	\item Using the interpreter(s)
       
   180 	\item Basic data types: int, float, string
       
   181 	\item Basic data structures: list
       
   182 	\item Basic console IO: \texttt{raw\_input(), print}
       
   183     \item Basic control flow: \texttt{if, while}
       
   184 	\item Problem set 1
       
   185     \item Functions $\rightarrow$ Problem set 2
       
   186     \item lists, \texttt{for}  $\rightarrow$ Problem set 3
       
   187     \item IO, Modules $\rightarrow$ Problem sets 4,5, \ldots
       
   188   \end{itemize}
       
   189 \end{frame}
       
   190 
       
   191 \begin{frame}
   175 \begin{frame}
   192   \frametitle{Introduction}
   176   \frametitle{Introduction}
   193   \begin{itemize}
   177   \begin{itemize}
   194   \item Creator and BDFL: Guido van Rossum
   178   \item Creator and BDFL: Guido van Rossum
   195   \item December 1989
   179   \item December 1989
   196   \item ``Python'' as in Monty Python's Flying Circus
   180   \item ``Python'' as in \it Monty Python's Flying Circus
   197   \item 2.6.x
   181   \item 2.6.x
   198   \item PSF license (like BSD: no strings attached)
   182   \item PSF license (like BSD: no strings attached)
   199   \item Highly cross platform
   183   \item Highly cross platform
   200   \item Nokia series 60!
   184   \item Nokia series 60!
   201   \item \alert{Philosophy:} Simple and complete by design
   185   \item \alert{Philosophy:} Simple and complete by design
   607     \texttt{raw\_input()} waits for user input.\\Prompt string is optional.\\
   591     \texttt{raw\_input()} waits for user input.\\Prompt string is optional.\\
   608     All keystrokes are Strings!\\\texttt{int()} converts string to int.
   592     All keystrokes are Strings!\\\texttt{int()} converts string to int.
   609   \end{block}
   593   \end{block}
   610   \begin{block}
   594   \begin{block}
   611     {Console output}
   595     {Console output}
   612     \texttt{print} is straight forward. Major point to remember is the distinction between \texttt{print x} and \texttt{print x,}
   596     \texttt{print} is straight forward. Note the distinction between \texttt{print x} and \texttt{print x,}
   613   \end{block}
   597   \end{block}
   614 \end{frame}
   598 \end{frame}
   615 
   599 
   616 \begin{frame}[fragile]
   600 \begin{frame}[fragile]
   617   \frametitle{Basic looping}
   601   \frametitle{Basic looping}