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