From 27ecedb02ef79ce53bf533e016b00462c44541be Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 23 May 2023 23:45:12 -0400 Subject: copying from old repo --- extension/examples/main.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 extension/examples/main.py (limited to 'extension/examples/main.py') 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 -- cgit v1.2.3-70-g09d2