Hands-on Sandbox Engine
Interactive Python Practice Lab
Select any of the 26 curriculum modules to solve dynamic tasks, inspect detailed error diagnostics, and run automated unit tests in your browser with zero login required.
All 26 Curriculum Modules
- MOD-01: Python Syntax & Indentation — Whitespace blocks, execution statements, and semicolon absence in Python.
- MOD-02: Python Comments — Single-line comments (#) and multiline docstrings.
- MOD-03: Python Variables & Dynamic Binding — Variable creation, dynamic typing, unpacking, and multiple assignment.
- MOD-04: Python Data Types — Built-in fundamental types: int, float, str, bool, list, tuple, dict, set, None.
- MOD-05: Python Numbers & Type Casting — Int, float, complex numbers, and casting via int(), float(), str().
- MOD-06: Python Strings & Slicing — String arrays, indexing [start:stop:step], negative indices, and string methods.
- MOD-07: Python Booleans & Logical Evaluation — Boolean truth values, truthy vs falsy values, and logical operators.
- MOD-08: Python Operators — Arithmetic, assignment, comparison, logical, identity (is), and membership (in).
- MOD-09: Python Lists (Arrays) — Ordered, mutable sequences, indexing, append, insert, remove, pop, and list comprehensions.
- MOD-10: Python Tuples — Ordered, immutable sequences, unpacking, and tuple hashing for dictionary keys.
- MOD-11: Python Sets — Unordered, unindexed collections of unique elements; union, intersection, difference.
- MOD-12: Python Dictionaries — Key-value associative mappings, keys(), values(), items(), and dict comprehensions.
- MOD-13: Python If...Else & Branching — Conditional branching, elif ladder, nested conditions, and ternary conditional operators.
- MOD-14: Python While Loops — Conditional loops, break, continue, and the while...else loop construct.
- MOD-15: Python For Loops & Range — Sequence iteration, range(start, stop, step), enumerate(), and zip().
- MOD-16: Python Functions & Parameters — def declarations, positional args, keyword args, *args, **kwargs, and return statements.
- MOD-17: Python Lambda Functions — Anonymous inline functions, map(), filter(), and sorted(key=lambda).
- MOD-18: Python Classes & Objects (OOP) — Class definition, the __init__ constructor, the self receiver, and instance methods.
- MOD-19: Python Inheritance & Polymorphism — Subclassing, super() initializer, method overriding, and polymorphism.
- MOD-20: Python Iterators & Generators — __iter__ and __next__ protocols, and generator functions with the yield keyword.
- MOD-21: Python Scope & LEGB Rule — Local, Enclosing, Global, and Built-in namespaces; global and nonlocal keywords.
- MOD-22: Python Modules & Packages — import, from ... import ..., as alias, dir() inspection, and __name__ == "__main__".
- MOD-23: Python Dates & Math — datetime module (now, strftime, strptime) and math functions (pow, sqrt, ceil, floor).
- MOD-24: Python JSON & Regular Expressions — json.loads(), json.dumps(), and the re module (search, findall, sub, split).
- MOD-25: Python Try...Except & Error Handling — Exception catching with try, except, else, finally, and raising custom exceptions.
- MOD-26: Python File Handling — File open modes ("r", "w", "a", "x"), with context manager, and os removal.