• Courses
  • Tutorials
  • Practice
Switch to Dark Mode

Python Arrays-question-2

Last Updated : Jan 13, 2025
Discuss
Comments

What is the output of the following code?

from array import array
arr = array('i', [1, 2, 3, 4, 5])
print(arr[0])


A

0

B

1

C

5

D

Error

Share your thoughts in the comments