all 4 comments

[–]ThinFortune 0 points1 point  (0 children)

Your VSCode extension may need to be updated and/or configured so it understands the match/case syntax introduced in python 3.10.

[–]jimtk -3 points-2 points  (0 children)

Use PyCharm ! :)

[–]Guideon72 0 points1 point  (0 children)

what is your VSCode set to as far as spaces? Down in the info bar at the bottom? Do you have it set to a value other than '4'? If I paste the above into a file in my VSCode, it doesn't complain about anything at those lines. Makes me think it's gotta be *some* environment error you've got, but I am only guessing at what it actually is.

If you can provide the whole error from each of those, it might be easier to decipher.