4 Python is an interpreted, interactive, object-oriented programming
5 language. It incorporates modules, exceptions, dynamic typing, very
6 high level dynamic data types, and classes. Python combines
7 remarkable power with very clear syntax. It has interfaces to many
8 system calls and libraries, as well as to various window systems, and
9 is extensible in C or C++. It is also usable as an extension language
10 for applications that need a programmable interface. Finally, Python
11 is portable: it runs on many brands of UNIX, on the Mac, and on
14 As a short example of what Python looks like, here's a script to
15 print prime numbers (not blazingly fast, but readable!). When this
16 file is made executable, it is callable directly from the UNIX shell
17 (if your system supports #! in scripts and the python interpreter is
18 installed at the indicated place).
20 #!/usr/local/bin/python
22 # Print prime numbers in a given range
26 min, max = 2, 0x7fffffff
28 min = int(eval(sys.argv[1]))
30 max = int(eval(sys.argv[2]))
39 if i%p == 0 or p*p > i: break