diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-05-23 23:45:12 -0400 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-05-23 23:45:12 -0400 |
commit | 27ecedb02ef79ce53bf533e016b00462c44541be (patch) | |
tree | 402305113b6f04c3e3b3563b68d32de5ff1c69c8 /extension/examples/main.py | |
download | sncontinue-27ecedb02ef79ce53bf533e016b00462c44541be.tar.gz sncontinue-27ecedb02ef79ce53bf533e016b00462c44541be.tar.bz2 sncontinue-27ecedb02ef79ce53bf533e016b00462c44541be.zip |
copying from old repo
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 |