Issue
I tried some of the solutions posted earlier in similar questions but none of them seem to work for me. My code is in Python 3.8 and I am using the latest version of VSCode. Thanks.
Solution
When running python code in VS Code, it executes the running command in the VS Code internal terminal ( TERMINAL
) by default. It is a terminal that allows user interaction, but "OUTPUT
" is an output terminal, which cannot receive user input.
For how to make the output display in "OUTPUT
" in VS Code:
Please use the "Code Runner
" extension in VS Code, which uses "OUTPUT
" by default:
In addition, if you want to use relatively clean output, you could also use "DEBUG CONSOLE
".
Please use in "launch.json": "console": "internalConsole",
then click F5
to debug the code:
Answered By - Jill Cheng
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.