From 6d24cbf02fdc2c6ce9c5e66717fb955abbcd9f32 Mon Sep 17 00:00:00 2001 From: Machura Date: Sat, 6 Oct 2018 23:04:22 +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..c38cce1 --- /dev/null +++ b/calculator.py @@ -0,0 +1,2 @@ +def add(a,b): + return(a+b) \ No newline at end of file From db7c7c874cdaf569b5cadf43b2543f660df7d3da Mon Sep 17 00:00:00 2001 From: Machura Date: Sat, 6 Oct 2018 23:11:41 +0530 Subject: [PATCH 2/2] Included subtract function --- calculator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index c38cce1..e3b9d03 100644 --- a/calculator.py +++ b/calculator.py @@ -1,2 +1,4 @@ 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