human
I am working on the file "02-basics/09-OOP.ipynb".
The first task is:
7. "Abstract" methods
Python does not define a special syntax for declaring methods that should be implemented in a child class. However, an "abstract" method can be implemented in the "abstract" class as:
Can you write Python code for it?
assistant
#Here is the Python code you requested.

class A():
    def do(self):
        raise NotImplementedError
        
x = A()
x.do()

class B(A):
    def do(self):
        print('Do something useful')
        
x = B()
x.do()