diff options
Diffstat (limited to 'extension/examples/main.py')
-rw-r--r-- | extension/examples/main.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/extension/examples/main.py b/extension/examples/main.py new file mode 100644 index 00000000..64640346 --- /dev/null +++ b/extension/examples/main.py @@ -0,0 +1,18 @@ +class Calculator: + def __init__(self): + pass + + def add(self, a, b): + return a + b + + def sub(self, a, b): + return a - b + + def mul(self, a, b): + return a * b + + def div(self, a, b): + return a / b + + def exp(self, num1, num2): + return num1 ** num2 |