Python Topics Tracker for Class 12 CS (From Class 11)
Python Basics
- `print()`, `input()`
- Variables and data types (`int`, `float`, `str`, `bool`)
- Type casting
- Comments (`#`)
Operators
- Arithmetic (`+`, `-`, `*`, `/`, `//`, `%`, `**`)
- Relational (`==`, `!=`, `>`, `<`, etc.)
- Logical (`and`, `or`, `not`)
- Assignment operators (`=`, `+=`, etc.)
Conditional Statements
- `if`, `if-else`, `if-elif-else`
- Nested `if`
Loops
- `for` and `while` loops
- `range()`
- `break`, `continue`, `pass`
- Nested loops
Strings
- Indexing & slicing
- Methods: `.lower()`, `.upper()`, `.find()`, `.replace()`, `.split()`, etc.
- `"x" in string` usage
Lists
- Creating & accessing lists
- Methods: `.append()`, `.pop()`, `.insert()`, `.remove()`, `.sort()`, `.reverse()`
- List slicing
- Looping through lists
File Handling
Python Topics Tracker for Class 12 CS (From Class 11)
- `open()`, `read()`, `write()`, `close()`
- Modes: `'r'`, `'w'`, `'a`
- `readline()`, `readlines()`
Functions
- `def` keyword
- Parameters and return values
- Scope: local vs global
- Calling functions
- Default arguments
- Recursion (basics only)
Optional (Good to Know)
- Tuples
- Dictionaries