Best way to go about running a file in Python? Need advice!

22 Replies, 2447 Views

Running a file in Python? `python script.py` is the way. For relative paths, use `os.path.abspath(__file__)` to get the full path.

If you’re into IDEs, check out Atom with the Hydrogen plugin. It’s great for running code interactively.

Messages In This Thread



Users browsing this thread: 1 Guest(s)