tmp[tmp_index]= arr[left] if arr[left]<=arr[right] else arr[right]


삼항연산자에서 각 값이 두번쓰이는데


비교하자마자 값을 할당할 수 있는 방법이 뭐가 있을까요?