Python For Loops Explained
How for loops work in Python: looping over lists, using range, enumerate and zip, break and continue, and building a list from…
Try: python lists, javascript functions, syntax error, first project
Every guide on the site, newest first. Explanations, projects and fixes written in plain English.
How for loops work in Python: looping over lists, using range, enumerate and zip, break and continue, and building a list from…
How conditions work in Python: comparison operators, elif chains, and, or, not, truthiness, and why indentation decides what runs.
Strings, integers, floats, booleans, lists, dictionaries and None — what each is for, how to convert between them, and how to check…
How variables work in Python: creating them, naming rules, multiple assignment, and the mutable-versus-immutable behaviour that surprises beginners.
Write, save and run your first Python program, then extend it. Every line explained, plus the three errors beginners hit in the…
Step-by-step Python installation for Windows, macOS and Linux, plus how to confirm it worked and fix the "python is not recognised" error.
Everything you need to begin with Python: what it is good at, how to install it, your first program, the core syntax,…
Why are there so many programming languages, and does the choice matter? A plain-English look at what languages have in common, how…
An algorithm is just a clear set of steps for getting something done. Here is what that means in code, why some…
A list holds many values under one name, in order. Here is how to read, add, remove and loop over items —…
A function is a named set of steps you can run whenever you need it. Here is how to write one, what…
A loop repeats a block of code so you do not have to write it out ten times. Here is the difference…
The fastest way to improve is to read one guide, then build the thing it describes. Start with the basics, or jump straight to a project.