title: Why is Python's eval() rejecting this multiline string, and how can I fix it?
body: <p>I am attempting to eval the following tab-indented string:</p>
  
  <pre><code>'''for index in range(10):
          os.system("echo " + str(index) + "")
  '''
  </code></pre>
  
  <p>I get, "There was an error: invalid syntax , line 1"</p>
  
  <p>What is it complaining about? Do I need to indent to match the eval() statement, or write it to a string file or temp file and execute that, or something else?</p>
  
  <p>Thanks,</p>