diff options
Diffstat (limited to 'day1/Session-1.tex')
-rwxr-xr-x | day1/Session-1.tex | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/day1/Session-1.tex b/day1/Session-1.tex index 4052bff..c54dd45 100755 --- a/day1/Session-1.tex +++ b/day1/Session-1.tex @@ -150,17 +150,26 @@ \section{Agenda} \begin{frame}{About the Workshop} \begin{block}{Goal of the workshop} - At the end of this program, successful participants will be able to use python as their scripting and problem solving language. Aimed at Engg. students--focus on basic numerics and plotting-- but should serve a similar purpose for others. + 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} - Let us verify that all of us are having the same (similar) tools and environment - \begin{description} - \item[python] Type python at the command line. Do you see version 2.5 or later? - \item[IPython] Is IPython available? - \item[Editor] Which editor? scite, vim, emacs, \ldots - \end{description} + \begin{block}{python} + Type python at the command line. Do you see version 2.5 or later? + \end{block} + \begin{block}{IPython} + Is IPython available? + \end{block} + \begin{block}{Editor} + Which editor? scite, vim, emacs, \ldots + \end{block} \end{frame} \section{Overview} @@ -183,12 +192,12 @@ \frametitle{Introduction} \begin{itemize} \item Creator and BDFL: Guido van Rossum - \item Conceived in December 1989 + \item December 1989 \item ``Python'' as in Monty Python's Flying Circus - \item Current stable version of Python is 2.6.x + \item 2.6.x \item PSF license (like BSD: no strings attached) \item Highly cross platform - \item Runs on the Nokia series 60! + \item Nokia series 60! \item \alert{Philosophy:} Simple and complete by design \end{itemize} \end{frame} @@ -211,7 +220,7 @@ \begin{frame} \frametitle{Why Python?} \begin{itemize} - \item Designed to be readable and easy to use + \item Readable and easy to use \item High level, interpreted, modular, OO \item Much faster development cycle \item Powerful interactive environment @@ -252,7 +261,7 @@ \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% TIME: 15 m, running 15m +% TIME: 10 m, running 10m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Python} @@ -357,16 +366,16 @@ a = "# This is not a comment!" \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% TIME: 15 m, running 30m +% TIME: 10 m, running 20m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{Data types} \begin{frame} \frametitle{Basic types} \begin{itemize} - \item numbers: float, int, long, complex - \item strings - \item boolean + \item Numbers: float, int, long, complex + \item Strings + \item Boolean \end{itemize} \begin{block}{Also to be discussed later} tuples, lists, dictionaries, functions, objects\ldots @@ -410,6 +419,10 @@ False \end{block} \end{frame} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% TIME: 10 m, running 30m +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \begin{frame}[fragile] \frametitle{Relational and logical operators} \begin{lstlisting} @@ -591,7 +604,7 @@ else: \begin{frame}{Simple IO} \begin{block} {Console Input} - \texttt{raw\_input(}) waits for user input.\\Prompt string is optional.\\ + \texttt{raw\_input()} waits for user input.\\Prompt string is optional.\\ All keystrokes are Strings!\\\texttt{int()} converts string to int. \end{block} \begin{block} |