def __del__(self)statement statement statementn for our student class__del__(method can be used as followsdef __del__(self)print("student object is being destroyed")other special methods method description __repr__(this method returns the string representation of an object it works on any objectnot just user class instances it can be called as repr(object__cmp__(this method can be used to override the behavior of =operator for comparing objects of class we can also write our own comparison logic __len__(this method is used to retrieve the length of an object it can be called as len(object__call__(this method allows us to make class behave like function its instance can be called as object(arg ,arg __hash__(while working with sets and dictionaries in pythonthe objects are stored based on hash value this value can be generated using this method __lt__(this method overrides the behavior of operator __le__(this method overrides the behavior of <operator __eq__(this method overrides the behavior of operator __ne__(this method overrides the behavior of !operator __gt__(this method overrides the behavior of operator __ge__(this method overrides the behavior of >operator __iter__(this method can be used to override the behavior of iterating over objects __getitem__(this method is used for indexingi for accessing value at specified index __setitem__(this method is used to assign an item at specified index private methods