Bro, same. I spent hours figuring out how to run a file in python when I started.
Here’s the cheat code:
1. Open terminal in the folder (or `cd` there).
2. Type `python script.py`. If it fails, try `python3`.
3. If it *still* fails, your Python might not be in PATH. Reinstall it and check that box!
For IDEs, VS Code is king. Install the Python extension, open your file, and click the play button. Done.
Here’s the cheat code:
1. Open terminal in the folder (or `cd` there).
2. Type `python script.py`. If it fails, try `python3`.
3. If it *still* fails, your Python might not be in PATH. Reinstall it and check that box!
For IDEs, VS Code is king. Install the Python extension, open your file, and click the play button. Done.
