Back to search

List operations, methods, slicing, and negative indexing

Lists are mutable ordered sequences that support indexing, slicing, appending, extending, and in-place updates.

Python Easy Theory

List operations, methods, slicing, and negative indexing

Lists are mutable ordered sequences that support indexing, slicing, appending, extending, and in-place updates.

  • Negative indices count from the end
  • Slicing returns a new list
  • append and extend do different things

List operations, methods, slicing, and negative indexing