728x90 divmod1 [Python Examples] divmod()을 사용하여 몫, 나머지 구하기 divmod()을 사용하여 몫, 나머지 구하기 포스트 난이도: HOO_Intern [Notice] 포스트 난이도에 대한 설명 안녕하세요, HOOAI의 Henry입니다. Bro들의 질문에 대한 내용을 우선적으로 포스팅이 되다 보니 각각의 포스트에 대한 난이도가 달라서 난이도에 대한 부분을 작성하면 좋겠다는 의견을 들었습니다 whoishoo.tistory.com # Example Codes print("Enter the first number: ") q = input() print("Enter the second number: ") r = input() quotient, remainder = divmod(int(q), int(r)) print("Quotient:", quotient) print("Remain.. 2022. 3. 15. 이전 1 다음 728x90