divmod

송용진·2023년 7월 20일
0

divmod(a, b)는 2개의 숫자 a, b를 입력으로 받는다.
그리고 a를 b로 나눈 몫과 나머지를 튜플로 리턴한다.

count,money=divmod(money,coin)
profile
개발자

0개의 댓글