How to make Visual Studio Code run python 2.7.15
Start VScode and open your python script. Using either the command palette or the status bar, select the python interpreter you wish to use. Both options present a list of available interpreters. Now you may run your code by right-clicking in the edit window and selecting "Run python file in terminal". A terminal window opens below the edit window and your code executes there. Note: You must execute your code using the right-click technique described above. Other methods, such as using the command palette with "run: code", will not work