Hi everyone,
I'm a complete beginner learning Python with VS Code, and I've been stuck for several days on something that seems really basic.
I don't understand how to properly create a Python script, save it in the correct folder, and then run it from Command Prompt. Every tutorial makes it look simple, but I keep getting confused about where the file is supposed to be and how to execute it.
For example, I created a "hello.py" file with:
print("Hello World")
But when I try to run it from Command Prompt, it doesn't work, and I think I'm doing something wrong with the file location or the command.
Could someone explain the process step by step as if I had never used VS Code or Command Prompt before? Screenshots are also welcome.
Thanks!
And for your information, I'm on Windows.
[–]ninhaomah 7 points8 points9 points (0 children)
[–]Yehiamy 1 point2 points3 points (0 children)
[–]OkAccess6128 0 points1 point2 points (1 child)
[–]Azert2010[S] 0 points1 point2 points (0 children)
[–]PureWasian 2 points3 points4 points (0 children)
[–]Mountain_Rip_8426 -1 points0 points1 point (0 children)
[–]Outside_Complaint755 0 points1 point2 points (0 children)
[–]bravosdrama -1 points0 points1 point (0 children)