summaryrefslogtreecommitdiff
path: root/extension/examples/main.py
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-05-23 23:45:12 -0400
committerNate Sesti <sestinj@gmail.com>2023-05-23 23:45:12 -0400
commit27ecedb02ef79ce53bf533e016b00462c44541be (patch)
tree402305113b6f04c3e3b3563b68d32de5ff1c69c8 /extension/examples/main.py
downloadsncontinue-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.py18
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