Q:

finding the sum of two integers in array that match an element in another array

The function takes two arrays arr1 and arr2 return true of any two integers in arr1 sums up to any element in arr2.I tried to do it but it's giving me a runtime error.
arr1[-1,8,3]
arr2[3,7,2]
program should retrun true because -1+3 = 2 two in arr2
def SumArray(arr1, arr2):
    # Write your code here
    myDictionary ={}
    ct=False
    el=arr2.pop()
    for i in range(len(arr1)):
        if arr1[i] in myDictionary:
        # print(myDictionary[arr1[i],arr1[i]])
                ct=True
                return ct

        else:
                myDictionary[el-arr1[i]]= arr1[i]
                ct=False
                return ct

A:

You can do something like this below :
for i in range(0, len(arr1)):
    for j in range(1, len(arr1)):
        if arr1[i] + arr1[j] in arr2:
            print("TRUE")
print("FALSE")

