Most of what an object holds is its own. Some things, though, belong to the whole class: a count of how many objects exist, a setting every object shares, or a way to build an object from a different kind of input. Python gives you class variables for shared data, and two kinds of method besides the ordinary one. This lesson shows each, and when to choose it.
More lessons in Complete Python Programming