ali ahmadi
ali ahmadi

Reputation: 189

How to stop Python print command from echoing in Visual Studio Code

Each time i run a print command in Visual Studio Code i get a ">>>" and an echo of my print command!, how can i stop this?, here is a image :
My Code:

print("hello world")  

Result :
enter image description here

Upvotes: 0

Views: 1787

Answers (1)

jdrd
jdrd

Reputation: 149

It looks like you're running the print statement from the python interpreter, which means that when you run a line it will print the line, then (if applicable) the output the line produces.

If you're trying to use the print statement within a python script, you should install the python extension for Visual Studio Code, and use it to run the file containing your script.

Upvotes: 2

Related Questions