From a3f3e39a925c94e09c3a8f1cfae7b665fdac1b20 Mon Sep 17 00:00:00 2001 From: 127lucas <12lucaslee@gmail.com> Date: Thu, 26 Mar 2026 22:55:36 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat/=EB=8D=94=ED=95=98=EA=B8=B0=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80=ED=96=88=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- add.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 add.py diff --git a/add.py b/add.py new file mode 100644 index 0000000..ac8c780 --- /dev/null +++ b/add.py @@ -0,0 +1,8 @@ +num1 = int(input("첫번째 숫자 입력:")) +연산 = input("연산 선택 (+ - * /):") +num2 = int(input("두번째 숫자 입력:")) + +if 연산 == "+": + print("결과:", num1 + num2) +else: + print("잘못된 입력입니다") \ No newline at end of file From eebcd9895a14756a4ca4b0e56971595837d63e1e Mon Sep 17 00:00:00 2001 From: 127lucas <12lucaslee@gmail.com> Date: Thu, 26 Mar 2026 23:11:03 +0900 Subject: [PATCH 2/3] =?UTF-8?q?rename/=20src=20=ED=8F=B4=EB=8D=94=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=ED=8C=8C=EC=9D=BC=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- add.py => src/add.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename add.py => src/add.py (100%) diff --git a/add.py b/src/add.py similarity index 100% rename from add.py rename to src/add.py From f2277d437f363b541cd58dd555893016dd6b08b4 Mon Sep 17 00:00:00 2001 From: 127lucas <12lucaslee@gmail.com> Date: Sat, 28 Mar 2026 16:45:35 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Feat/=EB=8D=A7=EC=85=88=EA=B8=B0=EB=8A=A5?= =?UTF-8?q?=20=ED=95=A8=EC=88=98=ED=99=94=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/add.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/add.py b/src/add.py index ac8c780..9f8e3e2 100644 --- a/src/add.py +++ b/src/add.py @@ -1,8 +1,2 @@ -num1 = int(input("첫번째 숫자 입력:")) -연산 = input("연산 선택 (+ - * /):") -num2 = int(input("두번째 숫자 입력:")) - -if 연산 == "+": - print("결과:", num1 + num2) -else: - print("잘못된 입력입니다") \ No newline at end of file +def add(num1, num2): + return int(num1) + int(num2) \ No newline at end of file