0

I do not quite understand why a slice of a list does not throw an exception, when the low index is larger than the length of the list. Instead an empty list is returned.

>> [1, 2, 3][1000:]
[]

Why is this?

Sven-Eric Krüger
  • 1,277
  • 12
  • 19

0 Answers0