From ccfb6af792e20db8590b8f981369bb98f5fe2817 Mon Sep 17 00:00:00 2001 From: Avikant Srivastava Date: Sun, 10 Oct 2021 18:45:39 +0530 Subject: [PATCH 1/2] new function mod --- calculator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 32b5546..41e005b 100644 --- a/calculator.py +++ b/calculator.py @@ -6,4 +6,7 @@ def multiply(a,b): return a*b def divide(a,b): - return a/b \ No newline at end of file + return a/b + + def mod(a,b): + return a%b \ No newline at end of file From 5c044023525dcd65b21ffaf8f1bcd8ea221617b1 Mon Sep 17 00:00:00 2001 From: Avikant Srivastava Date: Sun, 10 Oct 2021 18:51:20 +0530 Subject: [PATCH 2/2] rebased --- calculator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 41e005b..4a13a52 100644 --- a/calculator.py +++ b/calculator.py @@ -9,4 +9,7 @@ def divide(a,b): return a/b def mod(a,b): - return a%b \ No newline at end of file + return a%b + + def minus(a,b): + return a-b