So I have a function that takes a math equation in string format, and a list of numbers.
The purpose of the function is to apply that function to each number (an exponent function), and return the result.
For example, I am trying to pass "x**4" to it, and the list [4,3,2]
The end result, of course, would be [256, 81, 16]
How do you convert the string to a math equation while also keeping in mind that the string could be anything from "x*2" or "x*3".