University CS Course Catalog

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.

MOD-01 #1 · Python Basics

Python Syntax & Indentation

Whitespace blocks, execution statements, and semicolon absence in Python.

Indentation rulesBlock scoping with 4 spacesStatement termination
MOD-02 #2 · Python Basics

Python Comments

Single-line comments (#) and multiline docstrings.

Inline commentsBlock commentsTriple-quoted documentation strings
MOD-03 #3 · Python Basics

Python Variables & Dynamic Binding

Variable creation, dynamic typing, unpacking, and multiple assignment.

Variable assignmentMultiple assignmentOutput formattingGlobal variables
MOD-04 #4 · Python Basics

Python Data Types

Built-in fundamental types: int, float, str, bool, list, tuple, dict, set, None.

type() inspectionPrimitive typesSequence typesMapping types
MOD-05 #5 · Python Basics

Python Numbers & Type Casting

Int, float, complex numbers, and casting via int(), float(), str().

Arbitrary precision intsFloat representationsType conversion / casting
MOD-06 #6 · Python Strings

Python Strings & Slicing

String arrays, indexing [start:stop:step], negative indices, and string methods.

Negative slicingupper(), lower(), strip()format() and f-stringsescape characters
MOD-07 #7 · Python Logic

Python Booleans & Logical Evaluation

Boolean truth values, truthy vs falsy values, and logical operators.

bool() conversionsFalsy values (0, "", [], None)Short-circuit evaluation
MOD-08 #8 · Python Logic

Python Operators

Arithmetic, assignment, comparison, logical, identity (is), and membership (in).

Arithmetic //, %, **Identity: is vs ==Membership: in / not inBitwise operators
MOD-09 #9 · Python Collections

Python Lists (Arrays)

Ordered, mutable sequences, indexing, append, insert, remove, pop, and list comprehensions.

append() vs extend()List slicing & copysort() vs sorted()List comprehension
MOD-10 #10 · Python Collections

Python Tuples

Ordered, immutable sequences, unpacking, and tuple hashing for dictionary keys.

Immutability invariantTuple packing & unpacking (*rest)Single-element tuple (val,)
MOD-11 #11 · Python Collections

Python Sets

Unordered, unindexed collections of unique elements; union, intersection, difference.

Duplicate deduplicationset operations |, &, -, ^O(1) membership lookup
MOD-12 #12 · Python Collections

Python Dictionaries

Key-value associative mappings, keys(), values(), items(), and dict comprehensions.

Hash map semanticsget(key, default)dict comprehensionNested dictionaries
MOD-13 #13 · Control Flow

Python If...Else & Branching

Conditional branching, elif ladder, nested conditions, and ternary conditional operators.

if, elif, elseTernary operator: a if cond else bLogical combinators and/or
MOD-14 #14 · Control Flow

Python While Loops

Conditional loops, break, continue, and the while...else loop construct.

Loop invariantsbreak and continuewhile...else execution when loop completes without break
MOD-15 #15 · Control Flow

Python For Loops & Range

Sequence iteration, range(start, stop, step), enumerate(), and zip().

range() generatorenumerate(iterable, start)zip(*iterables)Nested iterations
MOD-16 #16 · Functions & Modules

Python Functions & Parameters

def declarations, positional args, keyword args, *args, **kwargs, and return statements.

Positional vs keyword args*args (tuple) and **kwargs (dict)Default parameter values
MOD-17 #17 · Functions & Modules

Python Lambda Functions

Anonymous inline functions, map(), filter(), and sorted(key=lambda).

lambda arguments: expressionHigher-order functionsCustom sorting criteria
MOD-18 #18 · Object-Oriented Programming

Python Classes & Objects (OOP)

Class definition, the __init__ constructor, the self receiver, and instance methods.

class blueprint__init__() methodExplicit self receiverInstance state __dict__
MOD-19 #19 · Object-Oriented Programming

Python Inheritance & Polymorphism

Subclassing, super() initializer, method overriding, and polymorphism.

Single and multiple inheritancesuper().__init__()Method overridingisinstance() & issubclass()
MOD-20 #20 · Advanced Python

Python Iterators & Generators

__iter__ and __next__ protocols, and generator functions with the yield keyword.

Iterator protocol (iter, next)StopIteration exceptionyield for memory-efficient streaming
MOD-21 #21 · Advanced Python

Python Scope & LEGB Rule

Local, Enclosing, Global, and Built-in namespaces; global and nonlocal keywords.

LEGB resolution orderUnboundLocalError causeglobal and nonlocal keywords
MOD-22 #22 · Advanced Python

Python Modules & Packages

import, from ... import ..., as alias, dir() inspection, and __name__ == "__main__".

Module import mechanicsas renamingdir() introspection__name__ execution guard
MOD-23 #23 · Standard Library

Python Dates & Math

datetime module (now, strftime, strptime) and math functions (pow, sqrt, ceil, floor).

datetime.datetimestrftime formatting (%Y, %m, %d)math functions min, max, abs
MOD-24 #24 · Standard Library

Python JSON & Regular Expressions

json.loads(), json.dumps(), and the re module (search, findall, sub, split).

JSON serialization / deserializationRegex patterns ^, $, [0-9], \wre.search & re.findall
MOD-25 #25 · Practical Python

Python Try...Except & Error Handling

Exception catching with try, except, else, finally, and raising custom exceptions.

try / except / else / finallySpecific exceptions (ValueError, TypeError)raise Exception()
MOD-26 #26 · Practical Python

Python File Handling

File open modes ("r", "w", "a", "x"), with context manager, and os removal.

with open(...) as f context managerread(), readline(), write()Exception safe file closing