NumPy - Fundamentals
What will be the output of this code?
import numpy as np list1 = [1, 2, 3] arr1 = np.array(list1) print(arr1 * 2)
import numpy as np list1 = [1, 2, 3] arr1 = np.array(list1) print(arr1 * 2)
[1, 2, 3] becomes a NumPy array arr1.[2 4 6].15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions