Learn / Object-Oriented Python

Classes & objects

Bundle data and behavior together into your own types.

Start free, no card 10 lessons a month on the free tier.

Lessons in this class

Object-Oriented Python

python · 4 steps · free

Bundle data and behavior together with classes.

  1. Define a class
  2. Give it behavior
  3. More state
  4. Readable objects

Start this lesson

Also coming to this class

Encapsulation

How CodeTrain teaches this

No videos and no multiple-choice quiz at the end. Each lesson is a handful of small steps in a real editor. You type the code yourself, it runs, and the tutor reviews what you actually wrote. It will not hand you the answer, and the step doesn't advance until your code passes. What you get at the end is a record of which steps you wrote unaided, not a completion percentage.

Start this class free Browse every course