강의

멘토링

커뮤니티

Inflearn Community Q&A

happydy08192331's profile image
happydy08192331

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

sum == int(total/2)

Resolved

Written on

·

213

0

선생님께서는 sum==(total-sum)

sum == total // 2로 바꾸면 홀수일 때 문제가 생긴다고 하셨는데

만약 sum == int(total / 2)로 코드를 짜도 잘 작동할까요?

감사합니다.

python코딩-테스트코테 준비 같이 해요!

Answer 1

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

sum == total //2 나 sum == int(total / 2) 같은 의미의 코드입니다.

happydy08192331's profile image
happydy08192331

asked

Ask a question