title: ImportError: can't find '__main__'
body: <p>I'm trying to run a simple python program in microsoft visual code but, when I run the debugger I get the error ImportError: can't find '<strong>main</strong>'. The code works fine if I run it in the terminal. This problem persists in every program I've created. The debugger worked fine the previous day but, now without me changing anything it is no longer working. I've tried reinstalling vs code and it had no effect. Can someone explain what I need to do?</p>
  <p>Below is the code I used.</p>
  <pre class="lang-py prettyprint-override"><code>t = []
  for x in range(0,5):
      t.append([&quot;x&quot;] *5)
  
  
  def review(t):
      for row in t:
          print(&quot;&quot;.join(row))
  review(t)
  </code></pre>
  <p>This is my launch file</p>
  <pre><code>{
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          
          {
              &quot;name&quot;: &quot;Python: Current File &quot;,
              &quot;type&quot;: &quot;python&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;program&quot;: &quot;${workspaceFolder}&quot;,
              &quot;console&quot;: &quot;integratedTerminal&quot;
          }
      ]
  }
  </code></pre>