What is 'Python'?
Python is an advanced scripting language that was invented around 1990 by Guido van Rossum. As a general-purpose language, Python has found many uses, including graphical applications, movie animation, automated testing and web scripting.
Python gets its name from the British TV comedy series Monty Python's Flying Circus, of which Guido van Rossum is a fan. Guido and some other key Python developers are currently employed to do Python development by a company called Digital Creations, based in Virginia. Digital Creations is home to the Python-based Zope web application toolkit.
Some of the main features of Python as a programming language are that it:
Here is a taster of Python programming to whet your appetite. It shows a
class Person: def __init__(self, newName): self.name = newName class Man(Person): sex = 'M' def __init__(self, newName): self.name = newName class Woman(Person): sex = 'F' def __init__(self, newName): self.name = newName
You can create an instance of a class as follows, and inspect its attributes:
>>> w=Woman('Agnetha') >>> w.name, w.sex ('Agnetha', 'F') >>>