From ecf572f704e6706b845f16b138fbb12d24c309d2 Mon Sep 17 00:00:00 2001 From: Shivagharehzad95 Date: Tue, 26 Aug 2025 11:34:03 +0200 Subject: [PATCH 1/4] Update calculator.py --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 383162d..68e2c2f 100644 --- a/calculator.py +++ b/calculator.py @@ -1,4 +1,4 @@ -# calculator.py +# calculator.py ###my changes class Calculator: """A simple calculator class.""" From 5e218865218ab7548fa9342268e08180c59f33b9 Mon Sep 17 00:00:00 2001 From: Shivagharehzad95 Date: Tue, 26 Aug 2025 11:38:55 +0200 Subject: [PATCH 2/4] Update calculator.py --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 68e2c2f..14dc456 100644 --- a/calculator.py +++ b/calculator.py @@ -1,4 +1,4 @@ -# calculator.py ###my changes +# calculator.py ###my changes###changess class Calculator: """A simple calculator class.""" From 213398ce76d2393e88c0567c17f79ad4ace7ecc7 Mon Sep 17 00:00:00 2001 From: shivagharehzad Date: Tue, 26 Aug 2025 11:49:24 +0200 Subject: [PATCH 3/4] update --- calculator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 14dc456..1f887ca 100644 --- a/calculator.py +++ b/calculator.py @@ -5,7 +5,7 @@ class Calculator: def add(self, a, b): """Return the sum of a and b.""" - return a + b + return a - b # ❌ should be a + b def subtract(self, a, b): """Return the difference of a and b.""" @@ -24,3 +24,5 @@ def divide(self, a, b): if b == 0: raise ValueError("Cannot divide by zero") return a / b + + From 41761a39e3857f8ad4e666f8c196f2dc44a75c01 Mon Sep 17 00:00:00 2001 From: shivagharehzad Date: Tue, 26 Aug 2025 12:12:00 +0200 Subject: [PATCH 4/4] correct the break codes --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 1f887ca..6b78760 100644 --- a/calculator.py +++ b/calculator.py @@ -5,7 +5,7 @@ class Calculator: def add(self, a, b): """Return the sum of a and b.""" - return a - b # ❌ should be a + b + return a + b def subtract(self, a, b): """Return the difference of a and b."""