Skip to content
Open
Changes from all 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
6 changes: 6 additions & 0 deletions src/subtract.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def subtract(a, b):
try:
return(float(a) - float(b))
Comment on lines +1 to +3
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

데이터 타입을 실수형으로 설정하신 건 바람직한 부분입니다.
다만 다른 팀원들과 데이터 타입에 대한 차이가 발생했는데, 팀원분들과 충분히 협의가 된 내용인지 궁금합니다!
이러한 질문을 드리는 이유는 이번 과제가 협업관련 과제기 때문에 충분한 소통이 되었는지 확인하기 위해 질문드렸습니다.

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.

팀과 같이 코드를 작성하고 설계하는 것 보다 혼자서 Github와 Git의 사용 방법에 더 집중하느라 코드 쪽을 신경쓰지 못했던 것 같습니다. 앞으로는 팀원들과 충분히 소통하여 협업하는 것에도 신경을 더 써야겠다고 생각하게 되었습니다.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

팀과 같이 코드를 작성하고 설계하는 것 보다 혼자서 Github와 Git의 사용 방법에 더 집중하느라 코드 쪽을 신경쓰지 못했던 것 같습니다. 앞으로는 팀원들과 충분히 소통하여 협업하는 것에도 신경을 더 써야겠다고 생각하게 되었습니다.

넵! 좋은 것 같습니당

except ValueError:
return "숫자를 입력하십시오."
# 뺄셈 구현
Comment on lines +4 to +6
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

valueError로 예외처리 하신 건 잘 하신 것 같습니다.