diff options
author | Prabhu Ramachandran | 2017-01-18 23:41:05 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2017-01-18 23:41:05 +0530 |
commit | cd46d964d97d0a0fa5479247335f14ead6ec3d69 (patch) | |
tree | 7d9298c6e67c6b5c2f1059190cf155ed60d7ecb4 /scipy/basic/session2a.tex | |
parent | 06b2b7ab01915b3cb980f67f822851e68a44c3a3 (diff) | |
download | python-workshops-cd46d964d97d0a0fa5479247335f14ead6ec3d69.tar.gz python-workshops-cd46d964d97d0a0fa5479247335f14ead6ec3d69.tar.bz2 python-workshops-cd46d964d97d0a0fa5479247335f14ead6ec3d69.zip |
Remove irrelevant parts.
Diffstat (limited to 'scipy/basic/session2a.tex')
-rw-r--r-- | scipy/basic/session2a.tex | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/scipy/basic/session2a.tex b/scipy/basic/session2a.tex index 964df5a..d5e936f 100644 --- a/scipy/basic/session2a.tex +++ b/scipy/basic/session2a.tex @@ -552,57 +552,3 @@ In []: %timeit t*t \end{frame} \end{document} - -%% Questions for Quiz %% -%% ------------------ %% - -\begin{frame}[fragile] -\frametitle{\incqno } - \begin{lstlisting} - In []: a = [1, 2, 5, 9] - In []: a[0:-1] - \end{lstlisting} - What is the output? -\end{frame} - -\begin{frame} -\frametitle{\incqno } - How do you combine two lists \emph{a} and \emph{b} to produce one list? -\end{frame} - -\begin{frame}[fragile] -\frametitle{\incqno } - \begin{lstlisting} - In []: a = [1, 2, 5, 9] - \end{lstlisting} - How do you add the value 10 to the end of this list? -\end{frame} - -\begin{frame} -\frametitle{\incqno } -Write the code to read a file \texttt{data.txt} and print each line of it? -\end{frame} - -\begin{frame}[fragile] -\frametitle{\incqno } -What would be the result of the following code snippet: -\begin{lstlisting} -In []: x = linspace(0, 10, 50) -In []: y = linspace(50, 100, 100) -In []: plot(x, y) -\end{lstlisting} -\end{frame} - -\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} |