Multiple choice technology programming languages

Do the negative indices are allowed in Python ?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Python supports negative indexing where -1 refers to the last element, -2 to the second-last, and so on. This provides a convenient way to access elements from the end of a sequence.