Question: 
Write a function to find the minimum difference in the tuple pairs of given tuples.


Model's Code:
def min_difference(tuples):
    min_diff = float('inf')
    for a, b in tuples:
        diff = abs(a - b)
        if diff < min_diff:
            min_diff = diff
    return min_diff



Sample Correct Code:
def min_difference(test_list):
  temp = [abs(b - a) for a, b in test_list]
  res = min(temp)
  return (res) 


Asserts:
assert min_difference([(3, 5), (1, 7), (10, 3), (1, 2)]) == 1
assert min_difference([(4, 6), (12, 8), (11, 4), (2, 13)]) == 2
assert min_difference([(5, 17), (3, 9), (12, 5), (3, 24)]) == 6


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 875 of 974: 673/875 (76.91428571428571%): success