What is the purpose of destructor in Python?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
purpose of destructor in Python:
__del__: this function will execute automatically when object is destroy.
__init_: this function will execute automatically when object is created.
https://www.youtube.com/watch?v=RhIwf9kMd4U