Lists - CBSE Class 11 Computer Science Notes, Diagrams and Solved Questions

Store many values in one Python list: indexing and changing items, joining, repeating and slicing, the list methods and functions, nested lists, and the classic max, min, mean, linear search and frequency programs.

In this chapter

  • Creating lists, indexing and why lists are mutable
  • Concatenation, repetition, membership and slicing
  • Traversing a list to find the maximum, minimum and mean
  • append, extend, insert, remove and pop
  • count, index, reverse, sort, sorted, min, max and sum
  • Nested lists as tables
  • Linear search and frequency-count programs