Start learning →
Home › Olympiad (Class 11) › Computer Science › Python Strings Lists and Tuples › A Python list has 50 elements. The index of its …

A Python list has 50 elements. The index of its last element is:

A49
B50
C51
D48
Answer & Solution
Correct answer: A. 49
1. Indexes begin at zero, not one. 2. The last index is one less than the length. 3. So the last index is 49. _Source: OpenStax Introduction to Python Programming, Chapter 3._
Practise this question with Quill — Olympiad (Class 11) →
Related questions