Python Lists and Tuples - ISC Class 12 Computer Science Notes, Diagrams and Solved Questions

Store many values in Python lists and tuples: indexing, joining, repeating and slicing, traversal with loops, the built-in list and tuple methods, nested lists and tuples, tuple assignment, and the standard max, min, mean, search and frequency programs.

In this chapter

  • Create, index and change lists
  • Use +, *, in and slicing on lists
  • Traverse a list, reading or changing its items
  • Use append, extend, insert, remove, pop, reverse, sort, sorted and the built-in functions
  • Work with nested lists as tables
  • Write programs for maximum, minimum, mean, linear search and frequency
  • Use tuples and know why they cannot change
  • Use tuple assignment and nested tuples