title: Extension of Python's eval
body: <pre><code>string = "if X &gt; 3 :\n   print(\"X is Greater\")\nelse :\n   print(\"X is Lesser\")"
  
  """ It prints the string as an indented code of if else statements if X is greater than 3
  X is greater else it prints X is lesser"""
  
  X = 6
  
  eval(string)
  </code></pre>
  
  <p>Can <code>eval()</code> in python be used in this way or is there anything I'm missing . </p>