Create a program in Python which takes a list of tuples as an input, and prints true if it contains two elements that sum to 10.
[(2, 8), (4, 6), (7, 3)]
def checkSum(arr):
    for (a, b) in arr:
        if a + b == 10:
            return True
    return False

arr = [(2, 8), (4, 6), (7, 3)]

print(checkSum(arr)) # True