In NumPy, what is the result of the operation np.array([1, 2, 3]) + 5?
2026
In NumPy, what is the result of the operation
np.array([1, 2, 3]) + 5?
Answer: B. [6, 7, 8]
- A.
An error
- B.
[6, 7, 8]
- C.
[1, 2, 3, 5]
- D.
[5, 10, 15]
Attempted by 289 students.
Show answer & explanation
Correct answer: B
Loading lesson…