Source Code:
(back to article)
class MyClass: pass x = MyClass() print(type(x)) # Output: <class '__main__.MyClass'> print(isinstance(x, MyClass)) # Output: True
Result:
Report an issue