NumPy - Fundamentals
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() and it takes a list as input.np.list(). array([1, 2, 3]) misses the np. prefix. np.array{1, 2, 3} uses curly braces which is invalid.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions