Python from Scratch
A free beginner course that takes you from installing Python 3.13 to writing small, useful programs: variables, strings, loops, collections, functions, files, error handling and a finished expense tracker.
This course assumes you have never written a line of code. You will install Python 3.13, run your first script, and then build up one idea at a time: variables, text, numbers, decisions, loops, lists, dictionaries, functions, modules and files.
Every lesson has complete examples you can type and run, a note about the mistake beginners usually make, and a short exercise. The last two lessons put everything together in a small expense tracker that saves its data to a file.
By the end you will be able to read simple Python written by other people, write scripts that solve small everyday problems, and move on to the intermediate course with a solid base.
Getting started
Text, numbers and user input
Making decisions and repeating work
Collections of data
Functions and modules
Files and errors
Final project: expense tracker
I've spent six years building ASP.NET Core platforms, REST APIs and mobile back-ends, most recently a multi-tenant fleet management SaaS on .NET 10. I write these courses the way I'd explain things to a new developer on my team: small steps, real code, no fluff.