python shell vscode code example
Example 1: how to get python to output in the terminal in vsc
py -3 --version
Example 2: visual studio code import library python
"python.linting.pylintArgs": [
"--init-hook",
"import sys; sys.path.append('/path/to/Functions')"
]
# OR
sys.path.append("/path/to/parent")
# option 1
from Functions import functions
functions.copy()
functions.delete()
# option2
from Functions.functions import copy, delete
copy()
delete()
Example 3: how to get python to output in the terminal in vsc
mkdir hello
cd hello
code .