def twoSum(self, nums, target):
:type nums: List[int]
:type target: int
t=[x for x in r if (target-nums[x]) in (nums[:x]+nums[x+1:])]
My python solution
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.