December 2012
Beginner
344 pages
7h 7m
English

Why is a giraffe like a sidewalk? Because both a giraffe and a sidewalk are things, known in the English language as nouns and in Python as objects.
The idea of objects is an important one in the world of computers. Objects are a way of organizing code in a program and breaking things down to make it easier to think about complex ideas. (We used an object in Chapter 4 when we worked with the turtle—Pen.)
To really understand how objects work in Python, we need to think about types of objects. Let’s start with giraffes and sidewalks.
A giraffe is a type of mammal, which is a type of animal. A giraffe is also an animate ...
Read now
Unlock full access