Skip to content
Snippets Groups Projects
Commit e840060d authored by Muhamed Alici's avatar Muhamed Alici
Browse files

Delete Calculator

parent c9c7ea41
No related branches found
No related tags found
No related merge requests found
Pipeline #19972 failed
from abc import ABC, abstractmethod
class ICalculator(ABC):
@abstractmethod
def add(self, a, b):
pass
@abstractmethod
def sub(self, a, b):
pass
class Calculator(ICalculator):
def add(self, a, b):
return a + b
def sub(self, a, b):
return a - b
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment