From absolute zero to object-oriented design, standard packages, algorithmic problem solving, and real-world projects.
Python Learning Hub is a structured collection of Python tutorials, hands-on examples, programming exercises, and revision resources designed to help learners progress from fundamentals to more advanced concepts.
Born out of an authentic, disciplined daily programming journey, this repository brings together over 1,200 executable Python programs, 75+ in-depth Markdown guides, 640+ solved homework assignments, 30 days of structured daily revision notes, and runnable multi-file mini-projects.
Every folder is intentionally named, sequentially numbered, and accompanied by a dedicated README.md explaining the concepts, practical code examples, common pitfalls, and next steps.
- π£ Absolute Beginners: Start at
01_getting_startedwithout prior coding experience. Follow the step-by-step installation guides and learn the fundamentals cleanly. - π College & University Students: Access 640+ topic-wise assignment solutions, lab exercises, and scenario-based unit test problems.
- πΌ Interview Candidates: Revise Python internals (CPython memory management, LEGB scope, MRO, GIL, generators) and practice LeetCode array and string patterns.
- π οΈ Self-Taught Developers: Reference production design patterns, package construction, custom exceptions, and layered SQLite database architecture.
Follow this sequential progression to navigate the curriculum from zero to advanced:
[ 01_getting_started ] ββ> Install Python, REPL, VS Code setup, first script
β
βΌ
[ 02_python_fundamentals ] β> Variables, Data Types, Operators, Conditionals, Loops
β
βΌ
[ 03_python_collections ] ββ> Lists, Matrices, Dictionaries (Hash Maps), Sets, Tuples
β
βΌ
[ 04_functions ] βββββββββββ> Parameters, Scopes (LEGB), Lambdas, Recursion, Decorators
β
βΌ
[ 05_object_oriented_prog ] β> Classes, Objects, 5 Types of Inheritance, MRO, Abstraction
β
βΌ
[ 06_modules_and_packages ] β> sys.path, __init__.py, Custom Packages, Standard Libraries
β
βΌ
[ 07_error_and_file_handling ] β> try-except-else-finally, Custom Errors, Stream I/O, Context Managers
β
βΌ
[ 08_intermediate_python ] β> 18 Mastery Modules: Concurrency, Memory, Big-O, TDD, Regex
β
ββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
βΌ βΌ βΌ
[ 09_practice_assignments ] [ 10_coding_challenges ] [ 13_mini_projects ]
640+ Solved Homework Tasks LeetCode Arrays & Strings Hospital, Banking & Results
β β β
ββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ
β
βΌ
[ 11_revision_and_interview_prep ]
30-Day Daily Sprint & Mock Tests
| Directory | Core Topics & Focus | Key Highlight |
|---|---|---|
| π 01_getting_started | Installation (Linux, Mac, Windows), REPL, Running Scripts | Beginner onboarding & setup |
| π 02_python_fundamentals | Types, Memory (id, sizeof), Operators, Conditions, Loops, Math |
120+ classroom scripts & exam guide |
| π 03_python_collections | 2D Matrices, Matrix Math ($O(N^3)$), Hash Maps, Frequency Sets | Pair sums & matrix addition |
| π 04_functions | Scopes (LEGB), *args/**kwargs, Lambdas, Map/Filter, Recursion |
Functional programming & decorators |
| π 05_object_oriented_programming | 5 Inheritance Types, MRO, super(), ABC Abstraction, Closures |
Domain modeling & OOP pillars |
| π 06_python_modules_and_packages | Package design, __init__.py, sys.path, os, time, calendar
|
Multi-directory architecture |
| π 07_error_and_file_handling |
try/except/finally, Custom Exceptions, File Modes (r, w, a, r+, w+, x) |
Defensive I/O & context managers |
| π 08_intermediate_python | 18 Architecture Modules: Concurrency, Memory, Big-O, TDD, Regex | 90 runnable advanced demos |
| π 09_practice_and_assignments | 640+ Solved Assignment Problems organized by subtopic | Question sheets + verified solutions |
| π 10_coding_challenges | LeetCode solutions (Arrays, Two Pointers, Strings, Sliding Window) | Algorithmic problem solving |
| π 11_revision_and_interview_prep | Comprehensive In-Depth Guide, Python Mastery Lab & 30-Day Sprint | 26 Modules, 9 Projects, 67 Automated Tests |
| π 12_learning_resources | Master Reference PDFs, WeasyPrint generator, 16 MCQ sheets | High-yield offline revision books |
| π 13_mini_projects | Hospital System, Student Result Engine, 4-Tier Banking App | Multi-file runnable applications |
| π 14_tests_and_assessments | Academic unit tests across learning timeline (April β September) | Scenario-based exam problems |
| π 15_archive | Raw trial scratchpads, digit prototypes, and sandbox experiments | Preserved learning history |
git clone https://github.com/AnilYadav17/Python.git
cd PythonNo external third-party dependencies are required for the tutorials or assignments! All examples run out of the box on Python 3.10+ using only the Python Standard Library.
python3 --version# Beginner first program:
python3 01_getting_started/first_program.py
# Armstrong number validator:
python3 02_python_fundamentals/Class_Work/Day10/loops/armstrong.py
# Custom banking exceptions:
python3 07_error_and_file_handling/exception_handling/custom_exception_bank_account.py
# Interactive Bank Account Management application:
python3 13_mini_projects/03_bank_account_management/main.py(Optional development tools like pytest and weasyprint can be installed via pip install -r requirements.txt).
Looking to explore complete applications? Head over to 13_mini_projects:
- π₯ Hospital Management System:
- Multi-package architecture (
patient,doctor,appointment,billing). - Demonstrates package boundary isolation, clean imports, and modular records.
- Multi-package architecture (
- π Student Result Processing Engine:
- Batch file stream processing with automated CSV parsing.
- Input validation, marks categorization, result generation, and defensive error logging to
error_log.txt.
- π¦ Bank Account Management System:
- Full 4-Tier layered architecture: Model (
Account), Database (SQLite), Data Access Object (DAO), Service Layer, and CLI Presentation. - Implements secure parameterized SQL statements and full CRUD capabilities.
- Full 4-Tier layered architecture: Model (
- Authentic Learning Record: This repository documents real coursework, coding bootcamps, and disciplined daily practice.
- 100% Syntax Validated: All 1,209 Python files have been compiled and verified with Python 3's
py_compilecompiler with 0 syntax errors. - Zero Artificial Inflation: We do not claim this repository is an all-inclusive computer science degree. Gaps, unfinished trials, and scratchpad experiments are honestly designated in 15_archive.
- Non-Destructive Curation: Original code logic, beginner implementations, and question prompts have been preserved intact without overwriting the original learning journey.
The following topics represent planned additions currently under active development:
- Advanced Backend Web Development: Production REST APIs using FastAPI and Flask.
- Automated CI/CD Testing: GitHub Actions test runners executing automated test suites via
pytest. - Graph Algorithms & Dynamic Programming: Expanding
10_coding_challengeswith intermediate/hard graph traversals (BFS/DFS, Dijkstra) and DP state machines. - Dockerization: Containerizing the mini-projects with reproducible Docker environments.
Contributions, typo fixes, improved docstrings, alternative algorithmic solutions, and additional test cases are always welcome! Please check our CONTRIBUTING.md for our pull request workflow and coding standards.
This repository is distributed under the MIT License. You are free to use, study, fork, and share this code for educational and personal projects.
Anil Yadav
Computer Science & Engineering Student
Passionate Software Developer & Open Source Contributor
- GitHub: @AnilYadav17
"Consistency beats intensity. Small daily improvements over time lead to stunning results."
Crafted with β€οΈ and dedication. If this repository helps your Python journey, give it a β on GitHub!