From c63470dc622e330824c8a350824ef01c1a0942d8 Mon Sep 17 00:00:00 2001 From: ymin431 Date: Fri, 20 Sep 2024 19:27:21 +0900 Subject: [PATCH 1/2] =?UTF-8?q?add,=20subtract=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calculator.py b/calculator.py index 90f5426..8addc2e 100644 --- a/calculator.py +++ b/calculator.py @@ -1,9 +1,9 @@ def add(a, b): - pass + return a+b def subtract(a, b): - pass + return a-b def multiply(a, b): @@ -27,5 +27,5 @@ def mod(a, b): if __name__ == "__main__": - # 간단한 테스트 코드 - pass \ No newline at end of file + print(add(2,3)) + print(subtract(2,3)) \ No newline at end of file From 36054806082af713e28d6bf3f0bb603630da5275 Mon Sep 17 00:00:00 2001 From: ymin431 Date: Fri, 20 Sep 2024 19:38:20 +0900 Subject: [PATCH 2/2] =?UTF-8?q?add,=20subtract=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calculator.py b/calculator.py index 8addc2e..4dae1f3 100644 --- a/calculator.py +++ b/calculator.py @@ -1,9 +1,9 @@ def add(a, b): - return a+b + return a + b def subtract(a, b): - return a-b + return a - b def multiply(a, b): @@ -27,5 +27,5 @@ def mod(a, b): if __name__ == "__main__": - print(add(2,3)) - print(subtract(2,3)) \ No newline at end of file + print(add(3,2)) + print(subtract(3,2)) \ No newline at end of file