Page 1 of 1

Is the following Python code correct?

Posted: Wed Jul 13, 2022 7:45 pm
by answerhappygod
>>> class A:
def __init__(self,b):
self.b=b
def display(self):
print(self.b)
>>> obj=A("Hello")
>>> del obj
a) True
b) False