## Example of an extension type.#cdefclassSpam:def__new__(self):self.amount=0def__dealloc__(self):printself.amount,"tons of spam is history."defget_amount(self):returnself.amountdefset_amount(self,new_amount):self.amount=new_amountdefdescribe(self):printself.amount,"tons of spam!"