script

A program, usually short, that is run directly to do a job, as opposed to a module written to be imported.

In more detail

A Python script is simply a .py file run with python3 name.py. To run it by name, give it a shebang and execute permission on macOS and Linux, or install it as an entry point.

Related terms

Taught in

References