Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 8)
8.
How do you access the element at index 2 in a one-dimensional array named arr?
arr.get(2)
arr[2]
arr.element(2)
arr.at(2)
Answer: Option
Explanation:
In Python arrays, elements can be accessed using square brackets and the index, like arr[index].
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.