```
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for i, v in enumerate(nums):
if target - v in nums[i+1:]:
j = nums[i+1:].index(target - v)
return [i, i+j+1]
```