Source Code:
(back to article)
class MyClass: pass obj = MyClass() class_name = type(obj).__name__ print(class_name) # Output: "MyClass"
Result:
Report an issue