How to Solve NameError: name 'ABC' is not defined -- abc

Solution: Import the 'ABC' module

To Solve the error, add the following line to the top of your code.

from abc import ABC

 

For more information:
Python abc ABC