python get OOP code example Example: real python oop >>> class Dog: ... pass ... >>> a = Dog() >>> type(a) <class '__main__.Dog'>