Parsing a string input into a lambda function (Python)
<p>How can I parse a string input into the proper form for it to be executed as mapping regulation in a lambda function?</p>

<pre><code> fx=type(input("Enter a polynomial: "))
</code></pre>

<p>This is my input, I want to enter arbirtray polynomials.</p>

<pre><code>f= lambda x: fx
</code></pre>

<p>Now i want my lambda function to be able to execute the strings from the input function just as if they were normal mapping regulations like <code>x**2</code> for instance.</p>