From 7bedfb1541a925d7fd59e1606715ac02b236fc67 Mon Sep 17 00:00:00 2001 From: sgupta_HA Date: Fri, 29 Jun 2018 14:18:23 +0530 Subject: [PATCH 1/2] added add method --- 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..07d83cc --- /dev/null +++ b/calculator.py @@ -0,0 +1,2 @@ +def add(a,b): + return a+b \ No newline at end of file From 2d9033c7d25cac2414bca28f2e559451d82b3da6 Mon Sep 17 00:00:00 2001 From: sgupta_HA Date: Fri, 29 Jun 2018 14:43:53 +0530 Subject: [PATCH 2/2] added subtract --- calculator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 07d83cc..1a88080 100644 --- a/calculator.py +++ b/calculator.py @@ -1,2 +1,5 @@ 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