R

Ram Sharma • 193.86K Points
Coach

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)
  • (A) array('i', [2, 3])
  • (B) array('i', [1, 3])
  • (C) [2, 3]
  • (D) [1, 3]
  • Correct Answer - Option(B)
  • Views: 182
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics