arr = [3, 5, -4, 8, 11, 1, -1, 6]
target = 10


def twosum(arr, target):
    nums = {}
    for num in arr:
        if target - num in nums:
            return print([target - num, num])
        else:
            nums[num] = True
    return []


twosum(arr, target)

09616c0b1df2a890aba62ce615d705d7019ce8d7
<mask token>

<mask token>


def twosum(arr, target):
    nums = {}
    for num in arr:
        if target - num in nums:
            return print([target - num, num])
        else:
            nums[num] = True
    return []


<mask token>

<mask token>


def twosum(arr, target):
    nums = {}
    for num in arr:
        if target - num in nums:
            return print([target - num, num])
        else:
            nums[num] = True
    return []


twosum(arr, target)

arr = [3, 5, -4, 8, 11, 1, -1, 6]
target = 10


def twosum(arr, target):
    nums = {}
    for num in arr:
        if target - num in nums:
            return print([target - num, num])
        else:
            nums[num] = True
    return []


twosum(arr, target)
