Please use a WHILE loop to solve each of thetwo problems below. The test cases to check the code against arealso provided below the parameters and answer template. Please usePython 2.7 Language
Problem 1:Write code that checks every adjacent pair of numbers in a listto see if either is a factor of the other and returns allfactor-pairs in order. For example, the list [2, 6, 12, 3, 7, 8,16, 10] would yield [“2-6”, “6-12”, “3-12”, “8-16”]. You may notuse any built-in functions/methods besides len() and.append().Problem 2:
Write code that takes two strings from the user, replaces allinstances of the second string with
PayPal Gateway not configured
PayPal Gateway not configured