Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

VSCode Python - print statement not printing to output

$
0
0

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.

enter image description here

What am I doing wrong?


Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>