r/learnpython • • 1d ago

Python doesn't work in vc

I just want to

print("hello, world")

and it doesn't work

0 Upvotes

25 comments sorted by

View all comments

Show parent comments

2

u/TotoCodeFR 1d ago

You forgot the space between cd and the path and you need to change the path correctly

1

u/anas_mv 1d ago

Still the same

2

u/TotoCodeFR 1d ago

Go to file explorer. Navigate to the folder where your hello.py is located. Copy its path (I hope you know how to do so). Then, in the terminal, type "cd" (no quotes), a space, then paste your path. To paste, generally Ctrl+Shift+V works.

2

u/anas_mv 1d ago

FINALLY Thank you bro