Operators, Expressions and Errors - CBSE Class 11 Computer Science Notes, Diagrams and Solved Questions

Python's arithmetic, relational, logical, assignment, identity and membership operators, the order in which expressions are evaluated, type conversion with input() and print(), and how to tell syntax, run-time and logical errors apart.

In this chapter

  • /, //, % and ** with an operator explorer
  • Relational and logical operators
  • Assignment and augmented assignment (+=, //= …)
  • Identity (is) and membership (in) operators
  • Operator precedence and evaluating expressions step by step
  • Implicit and explicit type conversion, input() and print()
  • Syntax, run-time and logical errors