Is there a way for me to print the class name itself, not the full info that __class__
gives you?
Code:
class MyClass:
def __init__(self):
pass
def class_name(self):
print(f"Current class: [Class name here as an f-string]")
In this case, MyClass().class_name()
will print the class name "MyClass".