GNU Info

Info Node: (python2.1-ref.info)Top-level components

(python2.1-ref.info)Top-level components


Next: Future statements and nested scopes Prev: Compound statements Up: Top
Enter node , (file) or (file)node

Top-level components
********************

The Python interpreter can get its input from a number of sources: from
a script passed to it as standard input or as program argument, typed
in interactively, from a module source file, etc.  This chapter gives
the syntax used in these cases.

Complete Python programs
File input
Interactive input
Expression input

automatically generated by info2www version 1.2.2.9