Vidyalelo
Data Structure · Q31

Arrays in Data Structures

Programming · Data Structure · question 31

Q31

What is the output of the following Python code: array = [1, 2, 3]; print(array[-1])

A.
1
B.
2
C.
3
Answer
D.
IndexError

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board