I am new to VSCode. I have set it up on Windows. When I run it using Code Runner,I see Running and Done messages but the print statements are not working.
print("Hello World!")
print ("This is VS Code")
a=1
while a <10:
print a
a = a+ 1
Here is the output:
[Running] python -u "c:\Users\user\PythonWorkArea\VSCode\HelloWorld\app.py"
[![\[Done\] exited with code=0 in 0.293 seconds][1]][1]
The print statement is not working.

What am I doing wrong?
You should select the appropriate Python Environment that you are using, do Control+Shift+P -> Python: Select Interpreter.
I had the same issue and had to change the default env to get it working.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With