What will the following code result in?
2023
What will the following code result in?
- A.
[-2 -3]
- B.
[12 23] [10 20]
- C.
[10 20] [12 23]
- D.
[2 3]
Attempted by 1362 students.
Show answer & explanation
Correct answer: D
NumPy performs element-wise subtraction, so [12−10, 23−20] = [2, 3].