Question
Lesson 3 of 11 in Coddy's Quiz Generator - Python OOP Project course.
Example of abstract class with two abstract methods,
from abc import ABC, abstractmethod
class A(ABC):
@abstractmethod
def foo(self):
pass
@abstractmethod
def bar(self, a, b):
passChallenge
EasyCreate abstract class named Question with the following methods:
print- abstract method which takes no input.check- abstract method which takes string (the answer types by the user) as input.
Try it yourself