Python - Classes and Object Lifecycle
Identify the error in this code related to object lifecycle:
class Sample:
def __init__(self):
print('Init called')
def __del__(self):
print('Del called')
obj = Sample()
obj = None
print('Done')