summaryrefslogtreecommitdiff
path: root/extension/examples/main.py
blob: 64640346e8f2ad524d681e27f6006655d520b2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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