How do you get a value of two int numbers from an array

I have an integer value of 10 and array list with integer numbers, how can I check if the array contains a sum of two values that give a result 10 ?

x = 10
arr[1, 11, 7, 3, 5, 2]

Example: I need to write script that does this: arr[2] + arr[3] = 10


try this . it will show the numbers in the list which gives the sum

def printPairs(arr, arr_size, sum):
    for i in range(0, arr_size):
        temp = sum-arr[i]
        if (temp in s):
            print("the values in array that gives sum are", str(arr[i]), str(temp))
A = [1, 11, 7, 3, 5, 2]
n = 10
printPairs(A, len(A), n)