Python 9618 Guide
Python 9618 Guide
2. Control Structures
Conditional Statements
if condition:
...
elif condition:
...
else:
...
Loops
5. File Handling
Reading from a text file
with open("file.txt", "r") as f:
lines = f.readlines()
6. Basic Algorithms
Linear Search
Binary Search (on sorted lists)
Bubble Sort
Count occurrences
Finding min/max
Average calculation
7. 2D Lists
Creating and accessing 2D lists:
Start practicing past papers from 2021 onward. Make sure you can:
Understand the problem statement
Plan using pseudocode or flowcharts
Translate into Python
Test and debug your code