constructor pythons code example Example: pyhon constructor def __init__(self): # body of the constructor