Coding classes and objects
Before we can create objects, we need to define a class first. That’s why it makes sense to go ahead and start by seeing how to define a class. After that, we’ll use it to create some instances.
Class syntax in Python
Alright, finally! Let’s define a basic Python class. A class is defined with the class keyword. After that, we specify the name of the class. It is a convention to capitalize class names. It looks like this:
class MyClass:
pass

Here, we create a class called MyClass that currently does nothing. If we are writing code constructs such as classes and functions but have no implementation yet, we use pass to say “I’ve got nothing to put here yet.” This won’t break our code. However, leaving the classes or functions completely empty would break our code. So, the pass keyword is something you typically only see in work in progress.
Let’s replace pass with some content...