Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/add.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
num1 = int(input("첫번째 숫자 입력:"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR 설명에 "임포트 기능"이 작업 내용으로 명시되어 있는데,
실제 코드에는 import가 없는 것을 확인했어요.

PR 설명은 실제로 작업한 내용을 기준으로 작성되어야 하는데,
이 부분은 어떻게 된 건지 여쭤봐도 될까요?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아! import 랑 input이랑 햇갈려서 잘못 적은것 같습니다

연산 = input("연산 선택 (+ - * /):")
num2 = int(input("두번째 숫자 입력:"))

if 연산 == "+":
print("결과:", num1 + num2)
else:
print("잘못된 입력입니다")
Comment thread
127lucas marked this conversation as resolved.
Outdated