Posts

Showing posts from September, 2026

Day 30: Capstone Project — Python Mastery Finale

🐍 Day 30: Capstone Project — Python Mastery Finale 1. The Final Challenge Today you will build a real‑world application that integrates everything you’ve learned across the past 29 days. This is your opportunity to demonstrate mastery of Python — from fundamentals to professional‑grade engineering. Choose one of the three project options below, or propose your own idea (subject to the same rubric). 2. Project Options Option A: Library Management System Build a complete system to manage a library’s books, members, and borrowing records. Core components: Database: SQLite with tables for books , members , borrowings Backend: OOP classes ( Book , Member , Library ) with full CRUD Interface: REST API (Flask) or GUI (Tkinter) — your choice Testing: pytest suite covering models and database operations Packaging: pyproject.toml , requirements.txt , README Key features: Add/search/update/delete books and members Borrow and return books with date tracking Track du...

Day 29: Packaging, Deployment & Git Integration

🐍 Day 29: Packaging, Deployment & Git Integration 1. Learning Objectives By the end of Day 29, you will be able to: Structure a Python project for distribution using pyproject.toml (or setup.py ) Create and activate virtual environments to isolate dependencies Generate requirements.txt and install from it Build and publish a package to PyPI (the Python Package Index) Convert a Python script into a standalone executable with PyInstaller Initialize and use Git for version control (init, add, commit, push) Write a proper .gitignore and README.md for any project 2. Concept Explanation 2.1 Why Packaging and Deployment Matter So far you've written Python scripts that run on your machine. To share them with others (or deploy them to servers), you need to package them so anyone can install and run them with a single command. Packaging also makes your code reusable and professional. Key concepts: Term Meaning Package A directory of Python modules with an ...

Day 28: Basic GUI Development with Tkinter

🐍 Day 28: Basic GUI Development with Tkinter 1. Learning Objectives By the end of Day 28, you will be able to: Understand event‑driven programming and how GUIs differ from console apps Create windows, labels, buttons, entry fields, and text areas with Tkinter Arrange widgets using geometry managers ( pack , grid , place ) Respond to user interactions with event handlers and callbacks Build a fully functional desktop application (calculator, to‑do list) Style widgets with colours, fonts, and padding 2. Concept Explanation 2.1 What is Tkinter? — Python's Built‑in GUI Toolkit Tkinter is Python's standard GUI (Graphical User Interface) library. It's a thin wrapper around Tcl/Tk , which has been battle‑tested for decades. Tkinter ships with every Python installation — no extra installs needed. Why Tkinter? Strength Detail Built‑in Works out of the box with any Python install Cross‑platform Windows, macOS, Linux — same code Simple Ideal for learning GUI ...

Day 27: Building REST APIs with Flask

🐍 Day 27: Building REST APIs with Flask 1. Learning Objectives By the end of Day 27, you will be able to: Understand the REST architecture and how APIs communicate over HTTP Set up a basic Flask application Define routes and handle HTTP methods (GET, POST, PUT, DELETE) Parse request data (query parameters, JSON body) Return JSON responses with proper status codes Test your API endpoints with pytest and requests Know when to choose Flask vs. FastAPI 2. Concept Explanation 2.1 What is a REST API? A REST API (Representational State Transfer) exposes your application’s functionality over HTTP using standard methods. It’s like a web server that returns data (usually JSON) instead of HTML pages. Resource: an entity like a user, product, or post (identified by a URL) Endpoint: a URL + HTTP method combination (e.g., GET /users , POST /users ) Stateless: each request contains all the info needed; the server doesn’t remember previous requests Typical URL pattern:...

Earn From the Comfort of Your Home

Build the skills to work comfortably from home, on your own terms.

Get Started Today