// 연산자
tmp = 7 // 2 print(tmp)# output 3
% 연산자
tmp = 7 % 2 print(tmp)# output 1
divmod(number1, number2)
number1을 number2로 나눴을 때의 몫과 나머지를 튜플 형식으로 반환tmp1, tmp2 = divmod(7, 2) print('divmod(7, 2) =', divmod(7, 2)) print('tmp1 =', tmp1, '\ntmp2 =', tmp2)# output divmod(7, 2) = (3, 1) tmp1 = 3 tmp2 = 1