title: Why this below exec command is not working
body: <p>Why these below statements are giving error</p>
  
  <pre><code>&gt;&gt;&gt; exec("x={}".format('b'))
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  NameError: name 'b' is not defined
  </code></pre>
  
  <p>I need the result to be </p>
  
  <pre><code>x='b'
  </code></pre>