Here is my solution. I think that this is better in practical application, instead of trying to implement a manual binary search.

```
class Solution:
# @param {integer[]} nums
# @param {integer} target
# @return {integer}
def search(self, nums, target):
try:
return nums.index(target)
except ValueError:
return -1
```