The _____ method in Python is used to delete the object and perform the cleanup activities.

  • del
  • delete
  • destruct
  • finalize
In Python, the finalize method is used to perform cleanup activities and delete an object. This method is called automatically by the garbage collector before reclaiming the memory used by the object.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *