human
I am working on the file "2020/2020-02-29/MetaProgramming In Python.ipynb".
The first task is:
Pattern 1 : Abstract Classes
Can you write Python code for it?
assistant
#Here is the Python code you requested.

from abc import ABCMeta, ABC, abstractmethod

ABCMeta?

class MyAbstractClass(metaclass=ABCMeta):
    def __init__(self):
        pass

    @abstractmethod
    def my_abstract_method(self):
        pass

MyAbstractClass()

class MyChildClass(MyAbstractClass):
    
    def __init__(self):
        pass
    
    def my_abstract_method(self):
        pass

mcc = MyChildClass()
mcc