Variables & Numbers

Programming for ML with no experience — if you can type, you can begin

Programs need to remember things. Python remembers by putting values into named boxes called variables. Think of a shelf of labelled jars: one jar has a label saying score, and inside it sits the number 10. Whenever the program mentions score later, Python walks to the shelf, opens that jar, and uses whatever is inside right now.

🔒 This is a Pro lesson — the interactive figure, worked examples, quiz and practice open with Pro access.

▶ Variables & Numbers
← Your First ProgramText: Working with Strings →