I'm new to programming and using python. I am unable to use the terminal to use command-line work. I can run script, but nothing from the command line
I cannot even do print('hello'), though I can do that on idle
I have reviewed some tutorials, but they are of no help
CodePudding user response:
If you're talking about VS Code built-in terminal (Ctrl `), before execute print('hello')
or some similar code, you should first start Python interective session by typing in python
end hitting Enter
.
Check this link for more details.
CodePudding user response:
Add these two lines to your settings.json
:
"terminal.explorerKind": "external",
"terminal.integrated.defaultProfile.windows": "Command Prompt"
Learn more here about using python in VSCode