"Expected parameter name", "source": "Pylance"

Issue

I am writing Python code on comparison operators on VS Code and I’m getting this error:

"Expected parameter name", "source": "Pylance"

the error occurs in the first "hello"

This is my code:

# comparing strings

print("hello"="hello")

Solution

i believe it should be

print("hello"=="hello")

you are missing a = sign

Answered By – rpuh

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published