ABSTRACT

A text file containing Python statements can be run from a terminal with a command. This way of using Python is a script, which may contain function definitions, variable assignments, print statements, and more. Another way to organize Python statements is to distribute them among several files. One of these files can be a script we might designate as the main program, whereas others contain bits of Python that the main program uses.