Python4Kids: Classy Methods, a Sense of Self (Classes Part 2)

[ Thanks to Brendan Scott for this
link. ]

“n our last tutorial we had our first look at classes and their
attributes. The attributes of a class are the data which are stored
in the class. The great thing about classes though is that we can
use them to relate data to functions. Just as the data of a class
are called attributes, the functions of a class have a special name
as well. They are called ‘methods’. We have had a brief meeting
with methods earlier.

“Let’s (re)create the class from the previous tutorial…”

Complete Story