Standard Sequential Syllabus
A structured sequence of 26 core Python modules: basic syntax, data structures, conditional control flow, functions, OOP classes, error handling, and algorithmic complexity.
Python Syntax & Indentation
Whitespace blocks, execution statements, and semicolon absence in Python.
Python Comments
Single-line comments (#) and multiline docstrings.
Python Variables & Dynamic Binding
Variable creation, dynamic typing, unpacking, and multiple assignment.
Python Data Types
Built-in fundamental types: int, float, str, bool, list, tuple, dict, set, None.
Python Numbers & Type Casting
Int, float, complex numbers, and casting via int(), float(), str().
Python Strings & Slicing
String arrays, indexing [start:stop:step], negative indices, and string methods.
Python Booleans & Logical Evaluation
Boolean truth values, truthy vs falsy values, and logical operators.
Python Operators
Arithmetic, assignment, comparison, logical, identity (is), and membership (in).
Python Lists (Arrays)
Ordered, mutable sequences, indexing, append, insert, remove, pop, and list comprehensions.
Python Tuples
Ordered, immutable sequences, unpacking, and tuple hashing for dictionary keys.
Python Sets
Unordered, unindexed collections of unique elements; union, intersection, difference.
Python Dictionaries
Key-value associative mappings, keys(), values(), items(), and dict comprehensions.
Python If...Else & Branching
Conditional branching, elif ladder, nested conditions, and ternary conditional operators.
Python While Loops
Conditional loops, break, continue, and the while...else loop construct.
Python For Loops & Range
Sequence iteration, range(start, stop, step), enumerate(), and zip().
Python Functions & Parameters
def declarations, positional args, keyword args, *args, **kwargs, and return statements.
Python Lambda Functions
Anonymous inline functions, map(), filter(), and sorted(key=lambda).
Python Classes & Objects (OOP)
Class definition, the __init__ constructor, the self receiver, and instance methods.
Python Inheritance & Polymorphism
Subclassing, super() initializer, method overriding, and polymorphism.
Python Iterators & Generators
__iter__ and __next__ protocols, and generator functions with the yield keyword.
Python Scope & LEGB Rule
Local, Enclosing, Global, and Built-in namespaces; global and nonlocal keywords.
Python Modules & Packages
import, from ... import ..., as alias, dir() inspection, and __name__ == "__main__".
Python Dates & Math
datetime module (now, strftime, strptime) and math functions (pow, sqrt, ceil, floor).
Python JSON & Regular Expressions
json.loads(), json.dumps(), and the re module (search, findall, sub, split).
Python Try...Except & Error Handling
Exception catching with try, except, else, finally, and raising custom exceptions.
Python File Handling
File open modes ("r", "w", "a", "x"), with context manager, and os removal.