title: Python elif works in IDLE but not Visual Studio Code
body: <p>I'm a Python newbie, currently working on my first project.</p>
  
  <p>My elif statements seem to work in IDLE but not VSC</p>
  
  <p>To demonstrate, I have a very simple if statement:</p>
  
  <pre><code>dud = 'You'
  if dud == 'You':
      print('You got the dud!')
  elif dud == 'Me':
      print('ohhhh, I made myself sad')
  else:
      pass
  
  </code></pre>
  
  <p>When I submit this code to IDLE, it works no problem.
  However, when I copy paste the exact same code into VSC and run in Python Terminal I get the following errors:</p>
  
  <pre><code>PS C:\Users\William&gt; &amp; C:/Users/William/AppData/Local/Programs/Python/Python38-32/python.exe
  Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; dud = 'You'
  &gt;&gt;&gt; 
  &gt;&gt;&gt; if dud == 'you':
  ...     print('You got the dud!')
  ...
  &gt;&gt;&gt; elif dud == 'Me':
    File "&lt;stdin&gt;", line 1
      elif dud == 'Me':
      ^
  SyntaxError: invalid syntax
  &gt;&gt;&gt;     print('ohhhh, I made myself sad')
    File "&lt;stdin&gt;", line 1
      print('ohhhh, I made myself sad')
      ^
  IndentationError: unexpected indent
  &gt;&gt;&gt; else:
    File "&lt;stdin&gt;", line 1
      else:
      ^
  SyntaxError: invalid syntax
  &gt;&gt;&gt;     pass
    File "&lt;stdin&gt;", line 1
      pass
      ^
  IndentationError: unexpected indent
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Naturally, I've tried various different types of formatting but I can't get it to work. If I remove the elif section it works fine, so I feel like I must be missing something basic.</p>
  
  <p>Any help would be greatly apprecaited!</p>
  
  <p>edit: Increasingly odd behaviour leads me to believe that this is somehow a Visual Studio issue:</p>
  
  <blockquote>
    <p>Running code in 'Python interactive window" = Successful Fresh Launch
    of VSC and using 'Run python file in terminal' = Succesful 'Run
    selection/line in terminal' = Error encountered above Running 'Run
    python file in terminal' after terminal has already running = error
    encountered above</p>
  </blockquote>
  
  <p>edit: People are rightly pointing out that that it looks like VSC is saying that there is an extra line being added.
  I don't think that is the case: here's a screenshot of the code in VSC </p>
  
  <p><a href="https://i.imgur.com/WRmkpTw.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/WRmkpTw.png" alt="Description"></a></p>