// beginner guides

Learn to code, step by step

Free written tutorials that start from zero. Every guide explains each line of code, shows the errors you're likely to meet, and ends with something to try yourself.

New to coding? Start with setting up VS Code, then write your first Python program, and work through the Python guides in order.

Python

pyPython4 min

Your First Python Program: Install, Write and Run It

A step-by-step beginner guide to installing Python on Windows or Mac, writing your first script and fixing the errors almost everyone hits on day one.

Read guide →
pyPython4 min

Python Variables and Data Types Explained for Beginners

Learn what variables are, how to name them, the four basic Python data types, and how to convert between them without getting a TypeError.

Read guide →
pyPython5 min

Python Operators and Maths: //, %, ** and Order of Operations

Learn every Python arithmetic operator, the difference between / and //, how % (modulo) works, powers, rounding, the order of operations, and the math module.

Read guide →
pyPython4 min

If Statements and Loops in Python: A Beginner's Guide

Make your Python programs take decisions with if, elif and else, and repeat work with for and while loops. Includes a number-guessing game to build.

Read guide →
pyPython4 min

Python Functions Made Simple: def, Parameters and return

Learn how to write your own Python functions, pass in parameters, return results, use default values, and understand the difference between print and return.

Read guide →
pyPython5 min

Working with Strings in Python: Slicing, Methods and Formatting

Learn how Python strings work, how to index and slice them, the string methods you'll use every day, and how to clean up and format text from users.

Read guide →
pyPython5 min

Python Lists for Beginners: Store, Change and Loop Over Data

Learn how to create Python lists, add and remove items, loop over them, sort them and avoid the classic copying mistake. Includes a shopping-list project.

Read guide →
pyPython5 min

Python Tuples and Sets Explained (and When to Use Them)

Learn what Python tuples and sets are, how they differ from lists, tuple unpacking, removing duplicates with sets, set operations, and how to choose the right collection.

Read guide →
pyPython5 min

Python Dictionaries Explained: Keys, Values and Real Examples

Learn how Python dictionaries store data as key-value pairs, how to add, update and look up values safely, loop over them, and count things with them.

Read guide →
pyPython5 min

Python try and except: Handle Errors Without Crashing

Learn how to catch errors in Python with try and except, handle specific exceptions, use else and finally, and keep asking for input until it's valid.

Read guide →
pyPython5 min

Reading and Writing Files in Python

Learn how to save and load text files in Python using open() and with, the difference between read, write and append modes, and how to handle missing files.

Read guide →
pyPython5 min

Working with CSV Files in Python: Read, Write and Analyse Data

Learn how to read and write CSV spreadsheet files in Python with the csv module, use DictReader and DictWriter, convert numbers, and calculate totals and averages.

Read guide →
pyPython6 min

Python Modules and pip: Use Code That's Already Written

Learn how to import Python's built-in modules like random, math and datetime, split your own code into modules, and install packages safely with pip and a virtual environment.

Read guide →
pyPython6 min

Python Classes and Objects: A Beginner's Guide to OOP

Learn object-oriented programming in Python. Create classes, use __init__ and self, write methods, add a readable __str__, and reuse code with inheritance.

Read guide →
pyPython6 min

Python Project: Build a To-Do List App Step by Step

Build a complete command-line to-do list in Python that adds, completes and deletes tasks and saves them to a file. A beginner project that uses lists, dictionaries, functions and JSON.

Read guide →
pyPython5 min

Python Project: Make a Quiz Game with Scores and a High Score

Build a multiple-choice quiz game in Python with shuffled questions, input checking, a final score and a saved high score. A fun beginner project using lists, dictionaries and functions.

Read guide →
pyPython6 min

Python Cheat Sheet for Beginners: Syntax at a Glance

A one-page Python reference for beginners. Variables, strings, lists, dictionaries, loops, functions, files, errors and classes, each with a short example and a link to the full guide.

Read guide →

Tech Tips

⚙Tech Tips4 min

How to Read Error Messages (and Actually Fix Them)

Error messages are clues, not failures. Learn how to read a Python traceback, what the most common errors mean, and a simple step-by-step method for debugging any program.

Read guide →
⚙Tech Tips5 min

Command Line Basics for Beginners: Windows, Mac and Linux

Learn to use the terminal with confidence. Find where you are, move between folders, create and list files, and run Python scripts, with commands for Windows, Mac and Linux.

Read guide →
⚙Tech Tips4 min

Set Up VS Code for Coding: A Beginner's Guide

Install Visual Studio Code, add the right extensions for Python, use the built-in terminal, and learn the keyboard shortcuts that save hours.

Read guide →
⚙Tech Tips5 min

Debugging Python in VS Code: Breakpoints and Stepping Through Code

Stop guessing and see exactly what your code is doing. Learn to use breakpoints, step through Python line by line, watch variables and find logic bugs with the VS Code debugger.

Read guide →
⚙Tech Tips5 min

Git Basics for Beginners: Save Your Code History

Learn what Git is, how to install it, and the handful of commands you need to track changes, undo mistakes and back up your projects to GitHub.

Read guide →
⚙Tech Tips6 min

How to Practise Coding Effectively: A Beginner's Plan

A practical plan for learning to code as a beginner. How long to practise, how to avoid tutorial hell, what to do when you're stuck, and a four-week Python practice schedule.

Read guide →
⚙Tech Tips7 min

Programming Glossary: 65 Coding Terms Explained Simply

Plain-English definitions of the programming words beginners meet most often, from algorithm and argument to variable and virtual environment, with Python examples.

Read guide →