O'Reilly logo

Learn Python the Hard Way: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code, Third Edition, Video-Enhanced Edition by Zed A. Shaw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercise 41. Learning to Speak Object Oriented

ImageVideo: Exercise 41: Learning to Speak Object Oriented

In this exercise, I’m going to teach you how to speak “object oriented.” What I’ll do is give you a small set of words with definitions you need to know. Then I’ll give you a set of sentences with holes in them that you’ll have to understand. Finally, I’m going to give you a large set of exercises that you have to complete to make these sentences solid in your vocabulary.

Word Drills

• class—Tell Python to make a new kind of thing.

• object—Two meanings: the most basic kind of thing, and any instance of some thing.

• instance—What you get when ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required