diff options
Diffstat (limited to 'getting_started_with_files/slides.tex')
-rw-r--r-- | getting_started_with_files/slides.tex | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/getting_started_with_files/slides.tex b/getting_started_with_files/slides.tex index 56582b4..9ba507f 100644 --- a/getting_started_with_files/slides.tex +++ b/getting_started_with_files/slides.tex @@ -1,4 +1,4 @@ -% Created 2011-05-18 Wed 12:37 +% Created 2011-05-24 Tue 11:43 \documentclass[presentation]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} @@ -72,21 +72,32 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries} \end{itemize} \end{frame} \begin{frame} -\frametitle{Question 1} +\frametitle{Pre-requisite} \label{sec-3} + Spoken tutorial on - + +\begin{itemize} +\item Getting started with Lists. +\item Getting started with For. +\end{itemize} +\end{frame} +\begin{frame} +\frametitle{Exercise 1} +\label{sec-4} + Split the variable into a list, \texttt{pend\_list}, of the lines in the file. \end{frame} \begin{frame} -\frametitle{Question 2} -\label{sec-4} +\frametitle{Exercise 2} +\label{sec-5} Re-open the file \texttt{pendulum.txt} with \texttt{f} as the file object. \end{frame} \begin{frame} \frametitle{Summary} -\label{sec-5} +\label{sec-6} In this tutorial, we have learnt to – @@ -101,7 +112,7 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries} \end{frame} \begin{frame} \frametitle{Evaluation} -\label{sec-6} +\label{sec-7} \begin{enumerate} @@ -112,6 +123,7 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries} \item file object \item function \end{itemize} +\vspace{8pt} \item What does the function ``splitlines()`` do. \begin{itemize} \item Displays the data as strings,all in a line @@ -122,11 +134,12 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries} \end{frame} \begin{frame} \frametitle{Solutions} -\label{sec-7} +\label{sec-8} \begin{enumerate} \item file object +\vspace{10pt} \item Displays the data line by line as strings \end{enumerate} \end{frame} |