skip to Main Content

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

This is the output

2

Answers


  1. 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.

    Login or Signup to reply.
  2. @Jaskaran-Singh-Julka, your code was: print("Hello world"), and your output showed: Hello world. The results of the print() 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search