CBSE Class 12 Computer Science Question 119 of 120

Review of Python Basics — Question 14

Back to all questions
14
Question

Question 14

Lists and strings in Python support two-way indexing.

Answer

True

Reason — Both lists and strings in Python support two-way indexing, which means we can access elements from the beginning or end of the sequence using positive or negative indices, respectively. Positive indices start from 0 for the first element, while negative indices start from -1 for the last element.