NumPy - Creating Arrays
Which of the following is the correct way to create a NumPy array from a Python list
[1, 2, 3]?[1, 2, 3]?np.array() with parentheses and a list inside.np.. np.list([1, 2, 3]) uses wrong function. np.array{1, 2, 3} uses braces instead of parentheses.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions