I have a class that I want to print it's name within a method
In the class file
class Example():
def __init__(self,x):
self.x = x
if self.x == True:
print(#Name of class object)
In main
from class_file.py import Example
abc = Example(True)
And when run I would like it to print "abc".
I have tried __name__
but that only returns "Example" (the class name) instead of the objects name.