diff options
author | Santosh G. Vattam | 2010-03-29 15:55:07 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2010-03-29 15:55:07 +0530 |
commit | a95545a7ce18e120a8f8e029e42e7521ae42791f (patch) | |
tree | c34d6cf787770608f277b64ffe2d1ede395a8e00 /day1/session3.tex | |
parent | 01bbd00b4b1e4825062e013599d54315d28a9dc9 (diff) | |
download | workshops-a95545a7ce18e120a8f8e029e42e7521ae42791f.tar.gz workshops-a95545a7ce18e120a8f8e029e42e7521ae42791f.tar.bz2 workshops-a95545a7ce18e120a8f8e029e42e7521ae42791f.zip |
Updated sessions of day 1 with the corrections from GRD.
Diffstat (limited to 'day1/session3.tex')
-rw-r--r-- | day1/session3.tex | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/day1/session3.tex b/day1/session3.tex index e92ebed..f2bff96 100644 --- a/day1/session3.tex +++ b/day1/session3.tex @@ -73,13 +73,13 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Title page -\title[Statistics]{Python for Scienc and Engg: Statistics} +\title[Statistics]{Python for Science and Engg: Statistics} \author[FOSSEE] {FOSSEE} \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} -\date[] {08 March, 2010\\Day 1, Session 3} +\date[] {02 April, 2010\\Day 1, Session 3} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo} @@ -145,9 +145,9 @@ In []: g_list = [] In []: for line in open('pendulum.txt'): .... point = line.split() - .... l = float(point[0]) + .... L = float(point[0]) .... t = float(point[1]) - .... g = 4 * pi * pi * l / (t * t) + .... g = 4 * pi * pi * L / (t * t) .... g_list.append(g) \end{lstlisting} \end{frame} @@ -274,7 +274,7 @@ Recall \typ{p = [2, 3, 5, 7]} and\\ \begin{lstlisting} In []: d = {'png' : 'image file', 'txt' : 'text file', - 'py' : 'python code' + 'py' : 'python code', 'java': 'bad code', 'cpp': 'complex code'} @@ -296,14 +296,17 @@ Out[]: False \begin{frame}[fragile] \frametitle{Dictionaries \ldots} - \begin{lstlisting} + \begin{small} + \begin{lstlisting} In []: d.keys() -Out[]: ['py', 'txt', 'jpg'] +Out[]: ['cpp', 'py', 'txt', 'java', 'png'] In []: d.values() -Out[]: ['python code', 'text file', - 'image file'] - \end{lstlisting} +Out[]: ['complex code', 'python code', + 'text file', 'bad code', + 'image file'] + \end{lstlisting} + \end{small} \inctime{10} \end{frame} |