Question: 6 . In Python, execute the following code: import numpy as np normal _ 9 = np . random.randn ( 9 ) normal _ 9
In Python, execute the following code:
import numpy as np
normal nprandom.randn
normalshape
normal normal
Then answer the following questions:
a Explain what each statement in the above code does.
b What class is the object named normal How do you know?
c What statement can you write to find the maximum value in normal
d What statement can you write to create an array named normal that
contains the values in the st and rd rows of normal
e What happens to normal and normal if we execute the statement
normal Why?
f What happens to normal and normal if we execute the statement
normal Why?
g What happens to normal and normal if we execute the statement
normal Why?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
