Question: Can you identify the error in the following code? # ! / usr / bin / env python 3 import numpy as np def numpyArray

Can you identify the error in the following code?
#!/usr/bin/env python3
import numpy as np
def numpyArray():
x = np.array([[1,2,3],[4,5,6]], np.int32)
y = numpy.array([[3,6,2],[9,12,8]], np.int32)
return x*y
print(numpyArray())
The y variable is not calling the numpy module properly.
The function is not indented properly.
numpy is not imported correctly because as is used.
The shebang line is not necessary.
Can you identify the error in the following code?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!