How do I run a file in Python? Need help with the command! or What’s the easiest way to use Python to

16 Replies, 1398 Views

Hey! Double-clicking won’t work well for scripts that close quickly—it just opens and closes the window too fast.

Definitely use the command line. Just navigate to the folder where your script is (use `cd`) and then `python run a file` like `python test.py`.

If you’re on Windows, you can also add `input()` at the end of your script to keep the window open.

Messages In This Thread



Users browsing this thread: 1 Guest(s)