How can I assign the value of a variable using eval in python?
<p>Okay. So my question is simple: How can I assign the value of a variable using eval in Python? I tried <code>eval('x = 1')</code> but that won't work. It returns a SyntaxError. Why won't this work?</p>
