In the following example:
class Example(dict):
def __init__(self, name):
self.name = name
def get_name(self):
return self.name
ex = Example('ex')
if ex:
print(ex.get_name())
The if ex statement is evaluating to False and I am not getting any output. What is causing this instance to evaluate to False?