B4Coder
0%
LessonAbout 8 min

Chapter 11 · Lesson 2 of 5

02. Methods: what objects can do

Functions inside a class are methods. They use self to read and change the object's own attributes, like a bank account's balance.

Opening the lesson…