From 3c05f49e8e9716a137d7770d38134fef652ee6ea Mon Sep 17 00:00:00 2001 From: isak Date: Wed, 7 Jan 2026 13:38:33 +0900 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20calculate=5Fsum=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exercise.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exercise.py b/exercise.py index 48cc0a6..af93d09 100644 --- a/exercise.py +++ b/exercise.py @@ -11,11 +11,12 @@ def calculate_sum(a: int, b: int) -> int: 두 정수의 합을 반환합니다. Args: - a: 첫 번째 정수 + a: 첫 번째 정수 b: 두 번째 정수 Returns: 두 정수의 합 + Example: >>> calculate_sum(1, 2) @@ -23,8 +24,9 @@ def calculate_sum(a: int, b: int) -> int: >>> calculate_sum(-1, 1) 0 """ + sum = a + b # TODO: 두 수의 합을 반환하는 코드를 작성하세요 - pass + return sum def calculate_average(numbers: list) -> float: From bd56347285c778a0162b11b24bc4fdfa7a4ad966 Mon Sep 17 00:00:00 2001 From: isak Date: Wed, 7 Jan 2026 13:40:23 +0900 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20calculate=5Faverage=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exercise.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercise.py b/exercise.py index af93d09..0a0a123 100644 --- a/exercise.py +++ b/exercise.py @@ -46,7 +46,9 @@ def calculate_average(numbers: list) -> float: 15.0 """ # TODO: 리스트의 평균을 계산하여 반환하는 코드를 작성하세요 - pass + for i in len(numbers): + avg = sum(numbers) / len(numbers) + return avg def find_max(numbers: list) -> int: From e92e8904ae8d3e10e7cfc39f43066abb676cc6da Mon Sep 17 00:00:00 2001 From: isak Date: Wed, 7 Jan 2026 13:41:04 +0900 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20find=5Fmax=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exercise.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercise.py b/exercise.py index 0a0a123..9a16665 100644 --- a/exercise.py +++ b/exercise.py @@ -68,7 +68,8 @@ def find_max(numbers: list) -> int: -1 """ # TODO: 리스트에서 최대값을 찾아 반환하는 코드를 작성하세요 - pass + max_value = max(numbers) + return max_value if __name__ == "__main__": From 7877ec074917182c94a60e54f3f6df506f792438 Mon Sep 17 00:00:00 2001 From: isak Date: Wed, 7 Jan 2026 14:04:25 +0900 Subject: [PATCH 4/4] test_variable --- exercise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercise.py b/exercise.py index 9a16665..85c78ac 100644 --- a/exercise.py +++ b/exercise.py @@ -4,7 +4,7 @@ 이 파일의 TODO 부분을 완성하고, VSCode에서 Git을 사용해 변경사항을 커밋하고 Push 해보세요! """ - +test_variable = "This is a test variable." def calculate_sum(a: int, b: int) -> int: """