Python may not work in the VS Code terminal due to several reasons: the Python executable path is missing from your system’s PATH environment variable, the wrong Python interpreter is selected in VS ...
Like most of us, I've always treated my editor and terminal as two separate places, with constant back-and-forth between them. I would write code, switch to a terminal, run a script, scan the output, ...