Shafi Institute Reference Edition

Python Programming Reference Manual

Welcome to the interactive reference manual for Python Programming! Designed as an authoritative manual, this course covers Python interpreter mechanics (Bytecode, PVM), variables, input/output, operator precedence rules, control flow, loops with the else suite, strings, NumPy array slicing & advanced indexing, functions, recursion call stacks, lambda, data structures (Lists, Tuples, Dictionaries), file IO, pickle serialization, regular expressions (re), and date/time management.

πŸ“˜ Textbook Reference Structure

This manual is structured into 8 core reference modules covering the complete university Python syllabus. Each chapter contains formal system definitions, architecture specifications, theoretical comparative matrices, layman analogies, annotated code examples, and reference exercises with model solutions.

πŸ—ΊοΈ Course Roadmap & Syllabus Map

This course covers 8 interactive module guides:

graph TD
    A[Course Home & Learning Portal] --> B[Module 01: Fundamentals Syntax & Operator Precedence]
    B --> C[Module 02: Control Flow Loops & Guard Statements]
    C --> D[Module 03: Strings & Text Processing Mechanics]
    D --> E[Module 04: Arrays & NumPy Array Processing]
    E --> F[Module 05: Functions Recursion Lambda & Modules]
    F --> G[Module 06: Data Structures Lists Tuples & Dictionaries]
    G --> H[Module 07: File IO Pickle Serialization & Directories]
    H --> I[Module 08: Regular Expressions & Date Time Management]
    
Curriculum Learning Flowchart across all Python Programming modules

πŸ“š Curriculum Module Index

Select a module from the sidebar navigation to open its detailed textbook chapter:

ModuleTopic NameDescription
Module 01Fundamentals & PrecedenceInterpreter Bytecode, PVM, variables, input/output, sys.argv, Data types, Operator Precedence.
Module 02Control Flow & Loopsif/elif/else ladders, while/for loops, Python loop else suite, break, continue, pass, assert.
Module 03Strings & FormattingImmutability, slicing [start:stop:step], string functions, f-strings, substring insertion.
Module 04Arrays & NumPyNative array vs NumPy ndarrays, vectorization, aliasing vs copy/view, basic & fancy indexing.
Module 05Functions & RecursionFunction definitions, pass-by-object-reference, *args/**kwargs, recursion stack, lambda, modules.
Module 06Lists, Tuples & DictsList methods/comprehensions, Tuple immutability/packing, Dictionary hash tables & iteration.
Module 07File IO, Pickle & DirsText vs Binary files, with context manager, seek()/tell() pointers, pickle, zipfile, os/shutil.
Module 08Regex & Datetimere module sequences/metacharacters, HTML parsing, datetime, strftime/strptime, calendar.

πŸ“– Beginners' Plain-English Vocabulary Cheat Sheet

Use the search box below to quickly filter key terms:

Tech Term Plain-English Definition Everyday Analogy
Bytecode (.pyc) Low-level platform-independent code generated by Python compiler before PVM execution. Sheet music created by a composer before an orchestra plays.
Loop Else Suite Code block attached to a for/while loop that runs only if loop finishes without a break. An alarm sounding only if you searched all pockets without finding your keys.
Pass by Object Reference Argument passing mechanic where functions receive references to memory objects. Handing someone a locker key vs handing them a paper photo.
Vectorization Performing mathematical operations across entire arrays simultaneously without explicit for loops. Using an automatic stamp to mark 100 letters at once instead of signing each individually.
Context Manager (with) Python construct that automatically handles resource allocation and cleanup (closing files). An automatic spring-loaded door that shuts securely behind you when leaving.
Pickle Standard module for serializing Python objects into binary byte streams for disk storage. Freeze-drying fresh produce so it can be stored on a shelf and rehydrated later.