skip to Main Content

Here input gets underline but code runs properly

it just started happening, now all "input()" gets yellow underline
But code works properly

3

Answers


  1. a=int(input()) 
    

    if u r keeping any integer values.

    Login or Signup to reply.
  2. That happens because you are using input. Use raw_input instead. raw_input is what you have to use with python 2.

    Login or Signup to reply.
  3. This problem does not occur in my pylance.
    It seems that there are some errors in your vscode’s pylance. It doesn’t recognize the input() method.

    You can try to update the pylance in the extension store or add the following code in settings.json:

      "python.analysis.diagnosticSeverityOverrides": {
        "reportUndefinedVariable": "none"
      }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search