Write a function, pair_sat, that takes three ints as formal…

Write a function, pair_sat, that takes three ints as formal parameters and returns a boolean. The method should return true only if it is possible to add two of the ints to get the third; false otherwise. pair_sat(1, 2, 3)    should return truepair_sat(3, 1, 2)    should return truepair_sat(3, 2, 2)    should return falsepair_sat(5, 3, -2)   should return true   pair_sat(5, 3, -3)   should return false

Write a function, sum_only_M, that takes a list of numbers a…

Write a function, sum_only_M, that takes a list of numbers and an integer M. The method should return the sum of only the elements of the list that are equal to M. sum_only_M(, 2)   here M = 2 –> should return 4sum_only_M(, 10)      should return 0sum_only_M(, 3)          should return 3