Revision of Python - CBSE Class 12 Computer Science Notes, Diagrams and Solved Questions

A fast, exam-focused tour of Class 11 Python: data types and mutability, operators and precedence, loops, strings, lists, tuples and dictionaries, with output-prediction practice.

In this chapter

  • Tokens, data types, and mutable versus immutable values
  • Operators, precedence, // and % with negative numbers
  • if-elif-else, for with range(), while, break and continue
  • String slicing and the common string methods
  • List methods, and aliasing versus copying
  • Tuples, tuple assignment and dictionaries
  • Predicting output exactly, including sep and end