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 to remove every oddnumber from a list. For example, the list [1, 2, 3, 4, 5, 6, 7, 8,9, 10] would yield [2, 4, 6, 8, 10].You may not use any built-infunctions/methods besides len() and .append().Problem 2:Write code that takes twostrings from the user, and finds the index of the second stringinside the first. For example, happybirthhappyday and happy yieldsthe result 10. If the substring is
PayPal Gateway not configured
PayPal Gateway not configured