summaryrefslogtreecommitdiff
path: root/day1/session4.tex
diff options
context:
space:
mode:
authorPuneeth Chaganti2010-01-12 19:03:34 +0530
committerPuneeth Chaganti2010-01-12 19:03:34 +0530
commite7c314cb1d20800f929951eeac75e046528a36c8 (patch)
tree1aa4fed41387bb6e82a0cd5662eb5ad2891a6e7d /day1/session4.tex
parentff739ac283432d46ae2c3b527d1999cd24029b86 (diff)
downloadworkshops-e7c314cb1d20800f929951eeac75e046528a36c8.tar.gz
workshops-e7c314cb1d20800f929951eeac75e046528a36c8.tar.bz2
workshops-e7c314cb1d20800f929951eeac75e046528a36c8.zip
Changes made during REC Chennai workshop.
Diffstat (limited to 'day1/session4.tex')
-rw-r--r--day1/session4.tex13
1 files changed, 12 insertions, 1 deletions
diff --git a/day1/session4.tex b/day1/session4.tex
index ddac34a..257fd54 100644
--- a/day1/session4.tex
+++ b/day1/session4.tex
@@ -646,7 +646,7 @@ What will be printed?
\begin{lstlisting}
In []: x = array([[1,2,3,4]])
\end{lstlisting}
-How to \lstinline+x+ to \lstinline+array([[1,2,0,4]])+?
+How to change \lstinline+x+ to \lstinline+array([[1,2,0,4]])+?
\end{frame}
\begin{frame}[fragile]
@@ -665,6 +665,17 @@ array([[2,3],
\begin{frame}[fragile]
\frametitle{\incqno }
\begin{lstlisting}
+ In []: x = array([[9,18,27],
+ [30,60,90],
+ [14,7,1]])
+\end{lstlisting}
+What is the output of \lstinline+x[::3,::3]+
+\end{frame}
+
+
+\begin{frame}[fragile]
+\frametitle{\incqno }
+\begin{lstlisting}
In []: a = array([[1, 2],
[3, 4]])
\end{lstlisting}