.pyfile to look like this:
chp02_02.py" in the same directory.
A number of things are going on there, so we'll take a moment and talk about them.
First, we used the
class command to create a new class called
In Python, code is grouped by using indentation. In order to tell Python we're starting a new group of indented code we end the line with a colon. We can't just throw colons where ever we want, though. They need to follow specific commands. We'll see more uses of colons as we continue ...