Skip to content

About

Structured 18-module Python curriculum spanning 300 executable lessons, standard library mastery, algorithms, ecosystem tools, and 20 mini-projects.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Learning Modules

Project Banner

Project Type Primary Language Learning Level Main Topic Learning Approach Learning Format Runtime / Environment Framework / Library Project Year License

Project Overview

Python Learning Modules is a structured programming education repository designed to teach Python progressively from foundational syntax to ecosystem development and practical project engineering. It centers on Python as the primary language and organizes 300 numbered, standalone executable scripts (01 through 300) across 18 sequential module directories (module-01 through module-18). Each module pairs an Indonesian-language Markdown study guide (README.md) explaining concept goals, execution commands, and expected results with self-contained .py source files and 300 captured terminal execution log images inside per-module output/ folders.

Learning Objectives

The curriculum aims to build end-to-end fluency in writing, structuring, testing, and applying Python code across core computer science topics and local application prototypes. Because the repository provides example implementations and execution log captures rather than graded exams, learners use the modules to practice concepts directly and verify behavior locally.

  • Write and execute well-structured Python scripts using standard input/output, variables, operators, conditionals, and loops.
  • Model data and program logic using built-in collections (list, tuple, set, dict), string processing, comprehensions, iterators, generators, and advanced functions.
  • Design modular software with object-oriented programming, custom exceptions, context managers, file I/O, packages, and the Python Standard Library.
  • Implement foundational searching, sorting, linear and non-linear data structures, recursion/backtracking, dynamic programming, greedy strategies, and Big O analysis.
  • Apply modern Python capabilities including type hints, structural pattern matching, caching, memory introspection, and descriptor/metaclass concepts.
  • Build local prototypes with external ecosystem libraries (NumPy, pandas, Matplotlib, Requests, BeautifulSoup, OpenPyXL, Flask, FastAPI, SQLAlchemy) and verify behavior with unittest, pytest, mocking, and profiling tools.

Learning Level & Approach

The curriculum follows a progressive, module-based sequence that transitions into project-based consolidation in the final module. Earlier modules rely solely on Python 3.10+ and the Standard Library so learners can focus on language mechanics before introducing third-party ecosystem packages and testing workflows in Modules 16–18.

Attribute Description
Learning Level Beginner to Advanced (sequential progression across 18 modules)
Learning Approach Module-Based (Modules 01–17) and Project-Based (Module 18)
Learning Format Module Markdown Guides (README.md), Executable Scripts (.py), and Execution Log Captures (output/*.png)
Programming Focus Python (Core Language, OOP, Algorithms, Modern Features, Data/API Ecosystem, Testing)
Instructional Language Indonesian module guides with English/Indonesian code identifiers and technical terms

Learning Path & Curriculum

Learners follow the 18 numbered modules in ascending order (01 to 300), progressing from basic script execution to multi-concept practical mini-projects:

  1. Foundations and Control Flow (Modules 01–05, Scripts 01–63): Script execution, types, operators, branching, and iteration.
  2. Functions, Collections, and Functional Constructs (Modules 06–10, Scripts 64–143): Modular functions, built-in collections, string manipulation, comprehensions, generators, decorators, and recursion.
  3. Object-Oriented Design, Files, and Standard Library (Modules 11–13, Scripts 144–207): Classes, inheritance, dunder methods, exceptions, file formats, custom packages, and built-in library modules.
  4. Algorithms, Modern Python, Ecosystem, and Capstone Projects (Modules 14–18, Scripts 208–300): Data structures and algorithms, typing and introspection, data/API/web libraries, testing/tooling, and 20 standalone mini-projects.
Order Module Main Topics Materials
01 Module 01 — Introduction & Program Structure Script execution, comments, print(), indentation, syntax errors, interpreter Guide, 10 Scripts, 10 Logs
02 Module 02 — Variables & Data Types Numeric types, strings, booleans, None, casting, mutability Guide, 14 Scripts, 14 Logs
03 Module 03 — Input, Output & Operators input(), arithmetic, comparison, logical, bitwise, precedence, f-strings Guide, 14 Scripts, 14 Logs
04 Module 04 — Branching & Decision Making if/elif/else, nested conditions, ternary expressions, match-case Guide, 10 Scripts, 10 Logs
05 Module 05 — Loops for, while, range(), nested loops, break/continue, loop-else, patterns Guide, 15 Scripts, 15 Logs
06 Module 06 — Functions Parameters, return values, *args/**kwargs, scope, recursion, docstrings Guide, 15 Scripts, 15 Logs
07 Module 07 — Built-in Data Structures Lists, tuples, sets, dictionaries, nesting, copying, collection conversion Guide, 20 Scripts, 20 Logs
08 Module 08 — String Manipulation Indexing, slicing, string methods, splitting/joining, Unicode, palindromes Guide, 14 Scripts, 14 Logs
09 Module 09 — Comprehensions, Iterators & Generators List/dict/set comprehensions, iter/next, yield, yield from, pipelines Guide, 16 Scripts, 16 Logs
10 Module 10 — Advanced Functions Lambdas, map/filter/reduce, closures, decorators, partial, callables Guide, 15 Scripts, 15 Logs
11 Module 11 — Object-Oriented Programming Classes, encapsulation, inheritance, polymorphism, ABCs, dataclasses, metaclasses Guide, 24 Scripts, 24 Logs
12 Module 12 — Exceptions, File Handling & Modules try/except/finally, custom exceptions, pathlib, JSON/CSV/Pickle, packages Guide, 20 Scripts + Helper/Pkg, 20 Logs
13 Module 13 — Python Standard Library math, datetime, os, collections, itertools, re, logging, sqlite3 Guide, 20 Scripts, 20 Logs
14 Module 14 — Algorithms & Data Structures Searching, sorting, stacks, queues, linked lists, trees, heaps, graphs, DP Guide, 23 Scripts, 23 Logs
15 Module 15 — Modern Python & Advanced Features Typing (Protocol, Generic), match-case, context managers, weakref, lru_cache Guide, 17 Scripts, 17 Logs
16 Module 16 — Data, APIs, Automation & Ecosystem NumPy, pandas, Matplotlib, Requests, BeautifulSoup, OpenPyXL, Flask, FastAPI, SQLAlchemy Guide, 17 Scripts, 17 Logs
17 Module 17 — Testing, Debugging & Project Management Debugging, assert, unittest, pytest, mocking, profiling, packaging, linting Guide, 16 Scripts, 16 Logs
18 Module 18 — Practical Python Projects 20 standalone CLI, database, file automation, API, scraper, and dashboard projects Guide, 20 Scripts, 20 Logs

Learning Modules & Contents

Each module directory contains a dedicated README.md with per-submodule explanations, exact terminal commands, expected results, source files, and links to execution log captures in output/. Use the module index below to navigate directly to each guide and representative source/log files.

Module 01 — Introduction & Program Structure (01–10)

Module 02 — Variables & Data Types (11–24)

Module 03 — Input, Output & Operators (25–38)

Module 04 — Branching & Decision Making (39–48)

Module 05 — Loops (49–63)

Module 06 — Functions (64–78)

Module 07 — Built-in Data Structures (79–98)

Module 08 — String Manipulation (99–112)

Module 09 — Comprehensions, Iterators & Generators (113–128)

Module 10 — Advanced Functions (129–143)

Module 11 — Object-Oriented Programming (144–167)

Module 12 — Exceptions, File Handling & Modules (168–187)

Module 13 — Python Standard Library (188–207)

Module 14 — Algorithms & Data Structures (208–230)

  • Module Guide: Open Module 14 README
  • Covered Submodules: 208 Linear Search through 230 Big O Analysis (23 scripts covering linear/binary search, bubble/selection/insertion/merge/quick sort, stacks, queues, singly/doubly linked lists, binary trees, BSTs, heaps, hash tables, graphs, BFS/DFS, backtracking, dynamic programming, and greedy algorithms)
  • Sample Execution Output: View Log Capture 208

Module 15 — Modern Python & Advanced Features (231–247)

Module 16 — Data, APIs, Automation & Ecosystem (248–264)

Module 17 — Testing, Debugging & Project Management (265–280)

Module 18 — Practical Python Projects (281–300)

Projects & Coding Challenges

Module 18 (module-18-proyek-praktik-python) serves as the practical consolidation track, providing 20 self-contained example implementations that run locally using in-memory data, temporary directories, or local test clients rather than live external services.

# Project Name Learning Focus Source File
281 Console Calculator Operator mapping, CLI arguments, division-by-zero validation 281_calculator_project.py
282 Number Guessing Game random.randint, single-turn comparison and CLI input 282_number_guessing_project.py
283 Quiz Application Input normalization, answer-key validation, scoring 283_quiz_application.py
284 Student Grade System Score range validation (0–100), average and pass status 284_student_grade_project.py
285 Student Database In-memory SQLite (:memory:), parameterized SQL queries 285_student_database_project.py
286 Inventory Management Dictionary state updates, stock bounds checking 286_inventory_management_project.py
287 Cashier System Integer price arithmetic, cart total calculation, item validation 287_cashier_system_project.py
288 Expense Tracker Class-based transaction log, positive amount validation 288_expense_tracker_project.py
289 Library Management Set-based borrow/return state transitions and error handling 289_library_management_project.py
290 Employee Management Unique ID dictionary records, duplicate and negative-salary guards 290_employee_management_project.py
291 Contact Book Name-keyed dictionary lookup and empty-string validation 291_contact_book_project.py
292 Password Generator Cryptographic random selection via secrets.choice 292_password_generator_project.py
293 File Organizer Temporary directory file grouping by extension via pathlib 293_file_organizer_project.py
294 CSV Data Analyzer csv.DictReader with StringIO, numeric parsing and averaging 294_csv_data_analyzer_project.py
295 Excel Report Generator Workbook creation and AVERAGE formula insertion via openpyxl 295_excel_report_project.py
296 Mocked Weather API Client HTTP status/JSON handling with requests and unittest.mock 296_weather_api_project.py
297 Local HTML Web Scraper CSS selector extraction (article h2) via BeautifulSoup 297_web_scraper_project.py
298 In-Memory REST API FastAPI POST/GET routes, Pydantic models, and TestClient 298_rest_api_project.py
299 Data Analysis Dashboard pandas groupby aggregation and in-memory Matplotlib plot 299_data_dashboard_project.py
300 Task Management App List-of-dicts task creation, completion toggling, and validation 300_task_management_project.py

Programming Languages & Tech Stack

The repository distinguishes between the core language and standard library taught across Modules 01–15 and the external Python packages used in Modules 16–18.

Category Technology Purpose
Language & Runtime Python (3.10+) Primary programming language taught and executed across all 18 modules
Standard Library Python Standard Library Core I/O, collections, math, datetime, re, pathlib, sqlite3, unittest, cProfile
Numerical & Data Analysis NumPy, pandas Array operations, DataFrames, data cleaning, and groupby aggregation (Modules 16 & 18)
Visualization Matplotlib Static chart generation in memory (Modules 16 & 18)
HTTP & Scraping Requests, BeautifulSoup (beautifulsoup4) Local/mocked HTTP request handling and HTML parsing (Modules 16 & 18)
Office Automation OpenPyXL (openpyxl) Programmatic .xlsx workbook generation and formula authoring (Modules 16 & 18)
Web & API Frameworks Flask, FastAPI, Pydantic Minimal web endpoints, schema validation, and TestClient checks (Modules 16 & 18)
Database ORM SQLAlchemy Declarative model mapping and SQLite session queries (Module 16)
Testing pytest Automated test execution for test_ functions (Module 17)
Environment Manifest requirements.txt Lists ecosystem dependencies above plus supporting tools (uvicorn, httpx2, Pillow, PySide6)

Prerequisites & Setup

Modules 01 through 15 require only Python 3.10 or newer (needed for match-case syntax introduced in Module 04 and typing features in Module 15) and zero external packages. Modules 16, 17 (pytest examples), and 18 (ecosystem mini-projects) require installing the dependencies declared in requirements.txt inside a virtual environment.

  • Required (All Modules): Python 3.10+ interpreter and terminal/CLI access (python or py).
  • Required (Modules 16–18 Ecosystem Examples): Python virtual environment (venv) with packages from requirements.txt.
  • Optional: A code editor or IDE such as VS Code for reading module guides alongside .py scripts and output/*.png captures.
# 1. Clone the repository and enter the project directory
git clone https://github.com/weztcy/Python-Learning-Modules.git
cd "Python-Learning-Modules"

# 2. Create and activate a virtual environment (required for Modules 16-18)
python -m venv .venv
# Windows PowerShell:
.venv\Scripts\Activate.ps1
# macOS / Linux:
# source .venv/bin/activate

# 3. Install ecosystem dependencies
pip install -r requirements.txt

Code Execution & Usage

Each module README instructs learners to run scripts from inside that module's directory so relative helper imports (such as pembantu_belajar.py in Module 12) resolve directly. Modules 01–15 run with the system Python interpreter, while Modules 16–18 should be executed using the activated virtual environment interpreter.

  1. Open the target module directory and review its README.md for concept notes, interactive input prompts (where applicable), and expected terminal output.
  2. Run a standalone script from inside its module folder:
# Example: Modules 01-15 (Standard Library only)
cd module-01-pengenalan-python-dan-struktur-program
python 01_hello_world.py

# Example: Modules 16-18 (with virtual environment activated)
cd ../module-18-proyek-praktik-python
python 281_calculator_project.py 8 / 2
  1. Run the pytest demonstration script in Module 17:
cd module-17-testing-debugging-dan-pengelolaan-proyek
python 268_pytest_basic.py
  1. Compare your terminal results with the captured execution log images stored in each module's output/ subdirectory (for example, module-01-pengenalan-python-dan-struktur-program/output/01_hello_world.png).

Contributing

Contributions to improve explanations, expand example coverage, or refine execution guides are welcome through the following workflow:

  1. Fork the repository.
  2. Create a branch for the change.
  3. Add or improve learning materials, source code, exercises, or documentation.
  4. Verify code examples and links where practical.
  5. Commit and push the branch.
  6. Open a pull request with a clear explanation.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author & Contact

Yohanes Dimas Pratama

About

Structured 18-module Python curriculum spanning 300 executable lessons, standard library mastery, algorithms, ecosystem tools, and 20 mini-projects.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages