...

/

Classes and Methods

Classes and Methods

This lesson discusses classes and methods in Python.

We'll cover the following...

Like other programming languages, Python is an object-oriented programming language. Classes can be created using the class keyword.

Class creation

The class can be created using a class keyword. Let’s create a simple class with no functionality.

Press + to interact
class Car:
pass
porsche = Car()
print(porsche)
...