shashank
shashank

Reputation: 1

I am unable to get the output of Python program in VS Code it is on printing the path but not running the code

enter image description here

If I want to run the code of Python in VS Code terminal I am not getting the output. I tried code runner or setting environmental variables, nothing works. How can I solve this problem?

Upvotes: 0

Views: 363

Answers (2)

samadpls
samadpls

Reputation: 133

  • In your case, needed to save the file first; as in the picture, it is visible that the file is not saved.
    Press cntrl+s
  • To use VScode, you need to open a folder. I suppose you directly opened the VScode and wrote a program. creates a folder in your machine and opened that folder/python.py then.

Upvotes: 1

shashank
shashank

Reputation: 1

thank you everyone who answered my question. my problem was solved when i added a new folder to vs code then the program started exexuting once again thank you everyone enter image description here

Upvotes: 0

Related Questions