def twoSum(self, nums, target):
    '\n        :type nums: List[int]\n        :type target: int\n        :rtype: List[int]\n        '
    lookup = dict(((v, i) for (i, v) in enumerate(nums)))
    return next((((i + 1), (lookup.get((target - v)) + 1)) for (i, v) in enumerate(nums) if (lookup.get((target - v), i) != i)), None)
:type nums: List[int]
:type target: int
:rtype: List[int]
def twoSum(self, nums, target):
    '\n        :type nums: List[int]\n        :type target: int\n        :rtype: List[int]\n        '
    lookup = dict(((v, i) for (i, v) in enumerate(nums)))
    return next((((i + 1), (lookup.get((target - v)) + 1)) for (i, v) in enumerate(nums) if (lookup.get((target - v), i) != i)), None)