Python Fundamentals

Start here if you are new to Python or to programming itself. These 38 tutorials cover variables, data types, loops, functions, lists, dictionaries, file handling, and error handling, with a number guessing game along the way to make it stick. By the end you can read, write, and debug real Python programs.

Python AI for Beginners: Call an LLM in 25 Lines

Python AI for beginners does not have to mean months of maths before you get to touch anything fun. You can call a real large language model, the same kind that powers the chat assistants you already use, in about 25 lines of Python. This post gets you from zero to a working AI script: get a key, install one library, send a prompt, and read the reply. Then we build a tiny study helper that explains any Python error ... Read More

Python Error Messages Explained: How to Read a Traceback

Python error messages look scary the first time a red wall of text fills your screen, but they are actually the most helpful thing Python ever tells you. This post teaches the one skill that separates a stuck beginner from a working programmer: reading a traceback calmly, from the bottom up, and knowing exactly which line to fix. Every example here was run on Python 3.14.6 and the output is the real thing. Here is the situation everyone starts in. ... Read More

Python Project: Build an Expense Tracker (Files, JSON, Dicts)

This Python expense tracker project pulls together the pieces you have been learning one at a time, dicts, lists, functions, files, JSON, and exceptions, into a single small program you can actually run and keep. If the last few tutorials felt like isolated Lego bricks, this is the post where you snap them into something that holds together. “Software is eating the world.” Marc Andreessen, The Wall Street Journal, 2011 Last Updated: July 2026 | Tested on: Python 3.14.6 | ... Read More