In this lesson
- It starts with a question. A machine doubles whatever you put in and adds 1. You feed in 4. What comes out?
- The idea you will find. One input, one output, no surprises. — That is what makes something a function. "Double and add 1" always sends 4 to 9. A rule that sometimes gave 9 and sometimes 11 would be useless for building anything on top of it — and every formula, spreadsheet column and line of code depends on that reliability.
- Length. 5 short steps. Progress saves on this phone.
Part of Number Machines: Functions
Feed a number in, get exactly one number out — the idea behind formulas, graphs and code.