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, 1359 Views

Quick tip: If `python run a file` isn’t working, you might have multiple Python versions installed.

Try `python3 test.py` or `py -3 test.py` on Windows.

Also, if you’re lazy like me, just drag the file into the terminal after typing `python`—it’ll auto-fill the path!

Messages In This Thread



Users browsing this thread: 1 Guest(s)