Q. What is the output of the following Python code?
Code:
import array
a = array.array('i', [1, 2, 3])
del a[1]
print(a)
β
Correct Answer: (B)
array('i', [1, 3])
import array
a = array.array('i', [1, 2, 3])
del a[1]
print(a)
You must be Logged in to update hint/solution