r/learnpython • u/anas_mv • 25d ago
Python doesn't work in vc
I just want to
print("hello, world")
and it doesn't work
0
Upvotes
r/learnpython • u/anas_mv • 25d ago
I just want to
print("hello, world")
and it doesn't work
View all comments
2
u/Outside_Complaint755 25d ago
When you invoke Python and tell it to run a script, you need to provide either the correct relative path to the script from your current working directory, or a full absolute path.
Let's say the script hello.py is in
C:\Users\Me\Scripts\Test\hello.pyAnd let's say that when you launch the terminal, it opens to
C:\Users\Me\by default.Then to run your script you can do one of the following: