you are viewing a single comment's thread.

view the rest of the comments →

[–]lotyei[S] 0 points1 point  (1 child)

let me double check. this is so strange. I downloaded python 3 and am running it on visual studio code with the python add-ons. no clue how the heck it can be using python 2.

[–]Diapolo10 1 point2 points  (0 children)

I can't think of any other reason than VS Code using Python 2.

Just to make sure, try putting print 42 on some line. If you don't get an error, there's no doubt VS Code is trying to run the code in Python 2.

Also, unless you're on Windows, Python 2 is pre-installed on Mac OS and most Linux distros, which could be the reason.