def printPairsSum(mList, m):
    result = []
    for i in range(len(mList)):
        for j in range(i + 1, len(mList)):
            if mList[i] + mList[j] == m:
                result.append([mList[i], mList[j]])

    print(f"Pairs: {result}")


n = int(input("Enter Number of Elements: "))
list = []
print("Enter Elements")
for i in range(n):
    list.append(int(input()))

m = int(input("Enter Sum: "))
printPairsSum(list, m)

1385a3fc57339a57fc0b8e630673c8503137c91d
<mask token>

def printPairsSum(mList, m):
    result = []
    for i in range(len(mList)):
        for j in range(i + 1, len(mList)):
            if mList[i] + mList[j] == m:
                result.append([mList[i], mList[j]])
    print(f'Pairs: {result}')


<mask token>

def printPairsSum(mList, m):
    result = []
    for i in range(len(mList)):
        for j in range(i + 1, len(mList)):
            if mList[i] + mList[j] == m:
                result.append([mList[i], mList[j]])
    print(f'Pairs: {result}')


<mask token>
print('Enter Elements')
for i in range(n):
    list.append(int(input()))
<mask token>
printPairsSum(list, m)

def printPairsSum(mList, m):
    result = []
    for i in range(len(mList)):
        for j in range(i + 1, len(mList)):
            if mList[i] + mList[j] == m:
                result.append([mList[i], mList[j]])
    print(f'Pairs: {result}')


n = int(input('Enter Number of Elements: '))
list = []
print('Enter Elements')
for i in range(n):
    list.append(int(input()))
m = int(input('Enter Sum: '))
printPairsSum(list, m)

def printPairsSum(mList, m):
    result = []
    for i in range(len(mList)):
        for j in range(i + 1, len(mList)):
            if mList[i] + mList[j] == m:
                result.append([mList[i], mList[j]])

    print(f"Pairs: {result}")


n = int(input("Enter Number of Elements: "))
list = []
print("Enter Elements")
for i in range(n):
    list.append(int(input()))

m = int(input("Enter Sum: "))
printPairsSum(list, m)
