Question: What will be the output of the following code? vec = np . arange ( 2 , 5 , 1 ) print ( 1 /

What will be the output of the following code?
vec = np.arange(2,5,1)
print(1/vec)
print(vec**2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To determine the output of this code lets walk through each part of it step by step Step 1 Understan... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!