Constructors in python

Constructors are the entities that are called automatically on object creation of a class. Consider the following example :

>>> class vehicle:
...   def __init__(self): #constructor
...     print 'inside constructor'
...   def car(self):
...     print 'this has four wheels'
...     print 'done'
...
>>> ob = vehicle()
inside constructor
>>> ob.car()
this has four wheels
done
>>>