First page Back Continue Last page Overview Graphics

Writing Scripts

So far we have just typed in single commands in the interpreter.

What about writing scripts?

Python Programs are usually stored

in files.

Python source files are saved with

the suffix .py.

For Linux and Unix only:

The character combination #! at

the beginning of a script is called

shebang or hashbang.

The Shebang line consists of the

shebang, the name of the interpreter

and the full path of the interpretor.