equal
deleted
inserted
replaced
644 \begin{frame}[fragile] |
644 \begin{frame}[fragile] |
645 \frametitle{\incqno } |
645 \frametitle{\incqno } |
646 \begin{lstlisting} |
646 \begin{lstlisting} |
647 In []: x = array([[1,2,3,4]]) |
647 In []: x = array([[1,2,3,4]]) |
648 \end{lstlisting} |
648 \end{lstlisting} |
649 How to \lstinline+x+ to \lstinline+array([[1,2,0,4]])+? |
649 How to change \lstinline+x+ to \lstinline+array([[1,2,0,4]])+? |
650 \end{frame} |
650 \end{frame} |
651 |
651 |
652 \begin{frame}[fragile] |
652 \begin{frame}[fragile] |
653 \frametitle{\incqno } |
653 \frametitle{\incqno } |
654 \begin{lstlisting} |
654 \begin{lstlisting} |
659 \begin{lstlisting} |
659 \begin{lstlisting} |
660 array([[2,3], |
660 array([[2,3], |
661 [4,2]]) |
661 [4,2]]) |
662 \end{lstlisting} |
662 \end{lstlisting} |
663 \end{frame} |
663 \end{frame} |
|
664 |
|
665 \begin{frame}[fragile] |
|
666 \frametitle{\incqno } |
|
667 \begin{lstlisting} |
|
668 In []: x = array([[9,18,27], |
|
669 [30,60,90], |
|
670 [14,7,1]]) |
|
671 \end{lstlisting} |
|
672 What is the output of \lstinline+x[::3,::3]+ |
|
673 \end{frame} |
|
674 |
664 |
675 |
665 \begin{frame}[fragile] |
676 \begin{frame}[fragile] |
666 \frametitle{\incqno } |
677 \frametitle{\incqno } |
667 \begin{lstlisting} |
678 \begin{lstlisting} |
668 In []: a = array([[1, 2], |
679 In []: a = array([[1, 2], |