commit a6079faa5579784d0136daf1dcbfe569ea12b336 Author: Andrew Emelyaneko Date: Sun Sep 27 23:03:14 2026 +0300 initial: add calculator function diff --git a/pipeline_test.py b/pipeline_test.py new file mode 100644 index 0000000..35d5522 --- /dev/null +++ b/pipeline_test.py @@ -0,0 +1,14 @@ +def calc(a, b, op): + if op == "+": + return a + b + elif op == "-": + return a - b + elif op == "*": + return a * b + elif op == "/": + if b != 0: + return a / b + else: + return "error" + else: + return "unknown op" \ No newline at end of file