Skip to main content

Course

Python

PythonPart 4 of 7 · Chapter 3 of 4

Bundling Data With Behaviour

A dictionary can hold a name and a grade, but nothing stops you misspelling the key next time you use it. Define a class once, stamp out three objects from it, and give each its own values without repeating the shape.

Read first: Looking Things Up Instead of Counting Along


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.