You define an abstract class by inheriting the ABC class from the abc module:
from abc import ABC
class AbstractCar(ABC):
@abstractmethod
def drive(self):
pass
To implement the class, just inherit it:
class ToyotaSupra(AbstractCar):
def drive(self):
print('brrrr sutututu')