tmp[tmp_index:] = arr[((right:end+1) if left > mid else (left:mid+1))]


왜 삼항연산자가 안먹히나요..