From e436251dbe66fa822b7bce8339d7b59cac43a65c Mon Sep 17 00:00:00 2001 From: Gsingh1990 Date: Fri, 29 Jun 2018 14:29:49 +0530 Subject: [PATCH 1/3] added add function --- calc.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 calc.py diff --git a/calc.py b/calc.py new file mode 100644 index 0000000..bdca579 --- /dev/null +++ b/calc.py @@ -0,0 +1,2 @@ +def(a,b) +return a+b; \ No newline at end of file From e49c4a787e0a2e5142999132ec32746a5e8e3128 Mon Sep 17 00:00:00 2001 From: Gsingh1990 Date: Fri, 29 Jun 2018 14:40:12 +0530 Subject: [PATCH 2/3] added substarct function --- calc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/calc.py b/calc.py index bdca579..bdc7489 100644 --- a/calc.py +++ b/calc.py @@ -1,2 +1,5 @@ -def(a,b) -return a+b; \ No newline at end of file +def add(a,b) +return a+b; + +def substract(a,b) +return a-b; From fb0808f4f5f12b82e4a6c244abb7c3c813a06289 Mon Sep 17 00:00:00 2001 From: Gsingh1990 Date: Fri, 29 Jun 2018 15:03:56 +0530 Subject: [PATCH 3/3] added multiply function --- calc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calc.py b/calc.py index bdc7489..7ee7f06 100644 --- a/calc.py +++ b/calc.py @@ -3,3 +3,6 @@ def add(a,b) def substract(a,b) return a-b; + +def multoply(a,b) +return a*b;