count = 0 given_sum = 7 x = 4 y = 3 pair = x + y if pair == 7: count += 1 #count goes up if the sum of x and y is the given number