bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/Python

Python

Object-Oriented Python

Classes, objects, constructors, inheritance, and the patterns that make Python code reusable.

Lesson 1

Python OOP

Python OOP

2 min
Read lesson →
Lesson 2

Python Classes and Objects

Python Classes/Objects Python is an object oriented programming language. Almost everything in Python is an object, with its properties and methods. A Class is like an object constructor, or a "bluep…

2 min
Read lesson →
Lesson 3

Python Classes/Objects Code Challenge

Challenge: Classes/Objects Test your understanding of Python classes by completing a small coding challenge.

2 min
Read lesson →
Lesson 4

Python __init__() Method

The __init__() Method All classes have a built-in method called __init__(), which is always executed when the class is being initiated. The __init__() method is used to assign values to object proper…

2 min
Read lesson →
Lesson 5

Python __init__ Method Code Challenge

Challenge: __init__ Method Test your understanding of creating classes, __init__, properties, methods, and objects.

2 min
Read lesson →
Lesson 6visual

Python self Parameter

The self Parameter The self parameter is a reference to the current instance of the class. It is used to access properties and methods that belong to the class. Example Use self to access class prope…

2 min
Read lesson →
Lesson 7

Python self Parameter Code Challenge

Challenge: self Parameter Test your understanding of the self parameter by completing a small coding challenge.

2 min
Read lesson →
Lesson 8

Python Class Properties

Class Properties Properties are variables that belong to a class. They store data for each object created from the class. Example Create a class with properties: class Person: def __init__(self, name…

2 min
Read lesson →
Lesson 9

Python Class Properties Code Challenge

Challenge: Class Properties Test your understanding of class properties by completing a small coding challenge.

2 min
Read lesson →
Lesson 10

Python Class Methods

Class Methods Methods are functions that belong to a class. They define the behavior of objects created from the class. Example Create a method in a class: class Person: def __init__(self, name): sel…

2 min
Read lesson →
Lesson 11

Python Class Methods Code Challenge

Challenge: Class Methods Test your understanding of class methods by completing a small coding challenge.

2 min
Read lesson →
Lesson 12

Python Inheritance

Python Inheritance Inheritance allows us to define a class that inherits all the methods and properties from another class. Parent class is the class being inherited from, also called base class. Chi…

3 min
Read lesson →
Lesson 13

Python Inheritance Code Challenge

Challenge: Inheritance Test your understanding of Python inheritance by completing a small coding challenge.

2 min
Read lesson →
Lesson 14visual

Python Polymorphism

The word "polymorphism" means "many forms", and in programming it refers to methods/functions/operators with the same name that can be executed on many objects or classes. Function Polymorphism An ex…

2 min
Read lesson →
Lesson 15

Python Polymorphism Code Challenge

Challenge: Polymorphism Test your understanding of Python polymorphism by completing a small coding challenge.

2 min
Read lesson →
Lesson 16

Python Encapsulation

Python Encapsulation Encapsulation is about protecting data inside a class. It means keeping data (properties) and methods together in a class, while controlling how the data can be accessed from out…

3 min
Read lesson →
Lesson 17

Python Encapsulation Code Challenge

Challenge: Encapsulation Test your understanding of Python encapsulation by completing a small coding challenge.

2 min
Read lesson →
Lesson 18

Python Inner Classes

Python Inner Classes An inner class is a class defined inside another class. The inner class can access the properties and methods of the outer class. Inner classes are useful for grouping classes th…

2 min
Read lesson →