python-project

Hands-on Python project tutorials that turn concepts into working programs.

Python Chatbot Project: Multi-Provider Chat App with Costs

One day a provider changes its API and half the chat tutorials on the internet quietly break. This Python chatbot project is built to survive that: a command line app that talks to any provider through one adapter layer, remembers the conversation, streams the reply as it arrives, returns typed data with Pydantic, and prints exactly what each turn cost. “Program to an interface, not an implementation.” Gang of Four, Design Patterns Last Updated: July 2026 | Tested on: Python ... Read More

Deep Learning Capstone: Image Classifier on Hugging Face

A folder of your own photos on one end, a public web demo anyone can click on the other. This image classification project covers that whole distance: fine-tune a pretrained network in PyTorch, push past 90% validation accuracy, read the confusion matrix honestly, then deploy free to Hugging Face Spaces with a proper model card. Everything runs on a plain laptop CPU, no GPU and no paid account. “A model that only lives in your notebook does not exist to ... Read More

Google Colab GPU Setup: Where to Run Deep Learning for Free

Your laptop does not have to suffer through deep learning. A free Google Colab GPU (Graphics Processing Unit) hands you a real Tesla T4 in a browser tab: no CUDA install, no gaming rig, no bill. This post walks through enabling it, proving it is on with one small check, the session rules that catch beginners, and a timed CPU vs GPU race you can run yourself. “The best way to get started is to stop talking and begin doing.” ... Read More