01
Tokens, Keywords & Identifiers
3 Topics
1.1
Character Set & Lexical Units
1.2
Keywords (Reserved Words)
1.3
Identifiers & Naming Rules
02
Variables, Assignment & Memory Model
2 Topics
2.1
Variable Assignment & Multiple Assignment
2.2
3 Object Properties: Identity, Type, Value
03
Literals (Constants)
3 Topics
3.1
Numeric Literals (Int, Float, Complex)
3.2
String Literals & Quotation Forms
3.3
Boolean Literals & Special Literal None
04
Expressions & Complete Operators
6 Topics
4.1
Expressions & Operands Overview
4.2
Arithmetic Operators (/, //, %, **)
4.3
Relational Operators (<, >, ==, !=)
4.4
Logical Operators (and, or, not)
4.5
Identity (is) vs Equality (==)
4.6
Augmented Assignment & Precedence
05
Type Conversion, Typing & Mutability
5 Topics
5.1
Implicit Conversion (Type Coercion)
5.2
Explicit Conversion (Type Casting)
5.3
Dynamic Typing vs Static Typing
5.4
Mutable vs Immutable Types
5.5
Escape Sequences & String Length
06
CBSE Summary & Output Mastery
1 Topic
6.1
CBSE Exam Revision & Output Guidelines
๐ Key Terms & Definitions
Glossary
Token (Lexical Unit)
The smallest individual unit recognized by the Python interpreter.
Dynamic Typing
Variable data types are bound during runtime rather than compile-time.
Immutable Object
Cannot be modified in-place (e.g.,
int, str, tuple).
Floor Division (//)
Returns the quotient truncated to the nearest lesser integer.
๐ฏ Most Important Questions (Click to Reveal)
CBSE Favorite
Q1. Why does
len('\n') evaluate to 1?
โผ
An escape sequence consists of a backslash followed by a character, but Python parses it as a single non-printable character token.
Q2. Distinguish between
== and is operator.
โผ
== checks for value equality, whereas is tests memory identity (whether both variables point to the same id()).
Q3. Predict output:
print(-7 // 2, 2 ** 3 ** 2)
โผ
Output:
-4 512. Floor division rounds down towards negative infinity (-3.5 floors to -4), and exponentiation evaluates right-to-left (3**2=9, then 2**9=512).
๐ก CBSE Exam Traps & Tips
Must Read
- Division Trap: True division
/in Python 3 always yields afloat(e.g.6 / 3produces2.0, not2). - Reserved Capitalization: Exactly three keywords start with an uppercase letter:
True,False, andNone. - Identifier Rules: Identifiers can never begin with digits or contain hyphens (e.g.
2nd_varandmy-valcause aSyntaxError).
๐ฏ Test Your Understanding
10 MCQs
Solve 10 board-level conceptual questions covering tokens, dynamic typing, operators, floor division, and mutability.