Answers for "What will be output for the following code? import numpy as np a = np.array([1, 2, 3], dtype = complex) print (a) A. [[ 1.+0.j, 2.+0.j, 3.+0.j]] B. [ 1.+0.j] C. [ 1.+0.j, 2.+0.j, 3.+0.j] D. Error"

5

how to import numpy array in python

>>> import numpy as np
>>> a = np.array([0, 1, 2, 3])
>>> a
array([0, 1, 2, 3])
Posted by: Guest on April-21-2020

Code answers related to "What will be output for the following code? import numpy as np a = np.array([1, 2, 3], dtype = complex) print (a) A. [[ 1.+0.j, 2.+0.j, 3.+0.j]] B. [ 1.+0.j] C. [ 1.+0.j, 2.+0.j, 3.+0.j] D. Error"

Python Answers by Framework

Browse Popular Code Answers by Language