diff options
author | Madhusudan.C.S | 2009-12-29 19:01:43 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-12-29 19:01:43 +0530 |
commit | 0e8e55448f6dfa1505b40be346f6dc043444e8b4 (patch) | |
tree | e3d70e80299234cc75a4d2be1f0a566f7fc39ecf /day1quiz1.tex | |
parent | c2fd6e99c4c0f046e84cf188a6c7b54299e250f7 (diff) | |
download | workshops-more-scipy-0e8e55448f6dfa1505b40be346f6dc043444e8b4.tar.gz workshops-more-scipy-0e8e55448f6dfa1505b40be346f6dc043444e8b4.tar.bz2 workshops-more-scipy-0e8e55448f6dfa1505b40be346f6dc043444e8b4.zip |
Changed few questions in day1quiz1 and added day 2 quiz.
Diffstat (limited to 'day1quiz1.tex')
-rw-r--r-- | day1quiz1.tex | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/day1quiz1.tex b/day1quiz1.tex index e669acf..11e04ce 100644 --- a/day1quiz1.tex +++ b/day1quiz1.tex @@ -40,7 +40,7 @@ \author[FOSSEE Team] {FOSSEE} \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} -\date[] {31, October 2009\\Day 1, Quiz 1} +\date[] {14, December 2009\\Day 1, Quiz 1} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -115,26 +115,14 @@ On the top right hand corner please write down the following: \end{lstlisting} \end{frame} -\begin{frame}[fragile] -\frametitle{\incqno } -What would be the result? -\begin{lstlisting} - In [1]: x - array([[0, 1, 2], - [3, 4, 5], - [6, 7, 8]]) - In [2]: x[::-1,:] -\end{lstlisting} -\end{frame} - \begin{frame} \frametitle{\incqno } -How to read and print each line of a file. +What ipython magic command do you use to obtain the lines of code you have already typed in the interpreter? What command do you use to save them? \end{frame} \begin{frame} \frametitle{\incqno } -How to get list of third column of a data file. +How to read and print each line of a file? \end{frame} \begin{frame}[fragile] @@ -156,5 +144,19 @@ Draw a plot with line width 3. Setting x and y axis limits. \end{frame} -\end{document} +\begin{frame}[fragile] +\frametitle{\incqno } +The following code snippet has an error/bug: +\begin{lstlisting} +In []: l = [0.1, 0.2, 0.3, 0.4] +In []: t = [0.69, 0.90, 1.19, 1.30] +In []: tsq = [] +In []: for time in t: + ....: tsq.append(time*time) + ....: plot(l, tsq) +\end{lstlisting} +What is the error? How do you fix it? +\end{frame} + +\end{document} |