How to get indices of a sorted array in Python How to get indices of a sorted array in Python python python