Learn Python by Building Real Things
$39.99
Buy on Amazon View on Apple BooksPrefer it in print? See every format on Amazon →
Price on Apple Books. Amazon’s price may differ.
- Published
Description
You have tried to learn Python before. Maybe you watched a few videos, copied some code that worked once, and then hit a wall the moment you tried to build something of your own. The tutorials never explained what to do when the program breaks, how to organise more than fifty lines, or how to know whether your code is actually correct.
Learn Python by Building Real Things fixes that. It assumes nothing: not the command line, not a previous language, not a maths background. It starts with installing Python on Windows, macOS or Linux and ends with you shipping tested applications that read files, call web APIs, store data and recover gracefully when things go wrong.
Every chapter teaches one idea properly, with runnable code, worked examples showing exact inputs and outputs, the mistakes beginners make and how to avoid them, and exercises with clear success criteria. You will learn to trace code by hand so you can predict what a program does before you run it, which is the single skill that turns a copier into a programmer.
You will build:
A money-aware expense tracker that saves your data between runs and never loses a record to a crash.
A weather client that talks to a live HTTP API, handles timeouts and bad responses, and caches results sensibly.
A personal inventory manager with a full automated test suite, packaged so anyone can install and run it with a single command.
Along the way you cover variables and types, branching and loops, functions, lists, dictionaries and sets, CSV and JSON files, exceptions, debugging, classes, HTTP requests, pytest, packaging with pyproject.toml, and an introduction to data analysis with the standard library and pandas.
This book is for first-time programmers, career changers, analysts who want to stop doing everything in spreadsheets, students who want a practical companion to their course, and anyone who has bounced off Python once and wants to make it stick this time. Written in plain British English with no filler, it is the book to read when you want to finish with real software, not just a certificate of completion.