Why are there so many improper underlines when I debugging python code in Visual Studio Code
<p>I have been writing my python code in VSCode with a python extension named 'python' on Ubuntu for many days. It has been very nice.</p>

<p>However, today I meet some problems as shown in the picture:</p>

<p><img src="https://i.stack.imgur.com/7Y85Z.png"></p>

<p>I have write the correct code which can be run properly (both for debugging and running through the Terminal). But there are many green underlines and a few red underlines which give many tips as:</p>

<p>for green underlines:</p>

<blockquote>
  <ul>
  <li><p>C0326:No space allowed before bracket (pylint)   </p></li>
  <li><p>W0621:Redefining name 'img' from outer scope (line 60) (pylint)   </p></li>
  <li><p>C0103:Invalid variable name "c" (pylint)   </p></li>
  <li><p>C0326:Exactly one space required after comma (pylint)   </p></li>
  <li><p>C0303:Trailing whitespace (pylint)   </p></li>
  <li><p>and so on</p></li>
  </ul>
</blockquote>

<p>for red underlines:</p>

<blockquote>
  <p>E0602:Undefined variable 'Runtime' (pylint)</p>
  
  <p>Unspecified run-time error.</p>
</blockquote>

<p>It seems this occured since I pressed one shortcut key accidentally, but I don't know which key it is.</p>

<p>How can I get rid of these underlines?</p>