From 9ca7de3c9ec5a77ce760bd848c2fae7da5dfbcd9 Mon Sep 17 00:00:00 2001 From: "pratishtha.bhadula" Date: Sat, 21 May 2022 15:51:13 +0530 Subject: [PATCH 1/2] added add function --- calculator.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 calculator.py diff --git a/calculator.py b/calculator.py new file mode 100644 index 0000000..b1ae7a2 --- /dev/null +++ b/calculator.py @@ -0,0 +1,2 @@ +def add(a,b): + return a+b \ No newline at end of file From 32cd38c042fb7bcfd8cedf525fd04441255195b0 Mon Sep 17 00:00:00 2001 From: "pratishtha.bhadula" Date: Sun, 22 May 2022 13:07:46 +0530 Subject: [PATCH 2/2] added subtract funtion --- calculator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index b1ae7a2..6071bcd 100644 --- a/calculator.py +++ b/calculator.py @@ -1,2 +1,6 @@ def add(a,b): - return a+b \ No newline at end of file + return a+b + + +def subtract(a,b): + return a-b \ No newline at end of file