11. Write code that reproduces the output shown below. 1]: # Code Here 2]: # DON'T WRITE HERE 2]: array([[32, 33, 34, 35, 36, 37, 38, 39, 40], [42, 43, 44, 45, 46, 47, 48, 49, 50]])

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 29SA
icon
Related questions
Question
Numpy Indexing and Selection
In [13]: # RUN THIS CELL - THIS IS OUR STARTING MATRIX
import numpy as np
matrix
np.arange (1,51).reshape(5,10)
%3D
matrix
Out[13]: array ([[ 1, 2,
9, 10],
5, 6, 7, 8,
[11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
[21, 22, 23, 24, 25, 26, 27, 28, 29, зе],
[31, 32, 33, 34, 35, 36, 37, 38, 39, 40],
[41, 42, 43, 44, 45, 46, 47, 48, 49, 50]])
3, 4,
11. Write code that reproduces the output shown below.
In [11]: # Code Here
In [12]: # DON'T WRITE HERE
Out[12]: array ([[32, 33, 34, 35, 36, 37, 38, 39, 40],
[42, 43, 44, 45, 46, 47, 48, 49, 50]])
Transcribed Image Text:Numpy Indexing and Selection In [13]: # RUN THIS CELL - THIS IS OUR STARTING MATRIX import numpy as np matrix np.arange (1,51).reshape(5,10) %3D matrix Out[13]: array ([[ 1, 2, 9, 10], 5, 6, 7, 8, [11, 12, 13, 14, 15, 16, 17, 18, 19, 20], [21, 22, 23, 24, 25, 26, 27, 28, 29, зе], [31, 32, 33, 34, 35, 36, 37, 38, 39, 40], [41, 42, 43, 44, 45, 46, 47, 48, 49, 50]]) 3, 4, 11. Write code that reproduces the output shown below. In [11]: # Code Here In [12]: # DON'T WRITE HERE Out[12]: array ([[32, 33, 34, 35, 36, 37, 38, 39, 40], [42, 43, 44, 45, 46, 47, 48, 49, 50]])
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT