From 8c3b9353218bcec0302c52dacfff5fd899a3e865 Mon Sep 17 00:00:00 2001 From: yoon Date: Fri, 3 Oct 2025 18:47:18 +0900 Subject: [PATCH] =?UTF-8?q?=20[FEATURE]=20#14=20=EC=88=AB=EC=9E=90=200=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=20=EA=B8=B0=EB=8A=A5=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - print_zero() 함수로 숫자 0 출력 및 반환 - get_zero() 함수로 숫자 0 반환 - is_zero() 함수로 0 여부 확인 기능 - 메인 실행부에서 테스트 및 결과 표시 - docstring 및 상세한 출력 정보 제공 --- print_zero.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 print_zero.py diff --git a/print_zero.py b/print_zero.py new file mode 100644 index 0000000..7ca3cc1 --- /dev/null +++ b/print_zero.py @@ -0,0 +1,34 @@ +""" +숫자 0 출력 모듈 +간단하게 숫자 0을 출력하는 기능을 제공합니다. +""" + +def print_zero(): + """숫자 0을 출력하는 함수""" + print(0) + return 0 + +def get_zero(): + """숫자 0을 반환하는 함수""" + return 0 + +def is_zero(number): + """주어진 숫자가 0인지 확인하는 함수""" + return number == 0 + +def main(): + """메인 실행 함수""" + print("🔢 숫자 0 출력 프로그램") + print("=" * 25) + + # 숫자 0 출력 + result = print_zero() + + # 추가 정보 출력 + print(f"반환값: {result}") + print(f"타입: {type(result)}") + print(f"0인가? {is_zero(result)}") + print("✅ 숫자 0 출력 완료!") + +if __name__ == "__main__": + main() \ No newline at end of file