I am trying to run a simple print code in Python for the first time which just prints Hello world. Every time I click on run I get the following output. I have all the extensions installed, installed python from Chrome as well as the Microsoft store but no luck. I am a beginner and struggling with this since yesterday
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
Your simple print is working, the lines in your terminal below that say Hello world are coming from your program. Try changing the text and running the program again. Soon you will be familiar with how visual studio and python work, it just takes some practice.
@Jaskaran-Singh-Julka, your code was:
print("Hello world")
, and your output showed:Hello world
. The results of theprint()
function always display results on a new line. I don’t think there is anything wrong with the results. Please check this photo you posted. I have marked the output in it.