Ask me anything about your lessons or your code.
“What is a port?” · “Why is my code erroring?”
A program is a list of exact steps a machine follows in order: what that really means, and the one line of Python that proves it.
What Code Is
A program is a list of exact steps a machine follows in order: what that really means, and the one line of Python that proves it.
Variables and Data
Named boxes that hold values, the four kinds of data that go in them, and why a program can remember anything at all.
Logic and Decisions
A stored value does nothing until a program branches on it: comparisons, if / elif / else, and the boolean logic that ties them together.
Loops and Repetition
Run one block of code once for every item, however many items there are: that is a loop, and it is where programs start to save real work.
Functions and Reuse
One block of code, named once and run anywhere: how functions turn repetition into a single reusable idea, and how the whole module fits into one small program.