Skip to content
Advertisement

vscode python no output

JavaScript

Whatever I write in the python file, it only gives the current file path. How could I fix it?

JavaScript

enter image description here

Advertisement

Answer

I just ran this program in VS Code and it worked fine.

Just right click and select ‘Run Python file in terminal’ options. It should work!

Run Python file in terminal

Sample Code

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement