in the programming worldduplicate code is considered evil we should not have multiple copies of the sameor similarcode in different places there are many ways to merge pieces of code or objects that have similar functionality in this we'll be covering the most famous object-oriented principleinheritance as discussed in object-oriented designinheritance allows us to create is relationships between two or more classesabstracting common logic into superclasses and managing specific details in the subclass in particularwe'll be covering the python syntax and principles forbasic inheritance inheriting from built-ins multiple inheritance polymorphism and duck typing basic inheritance technicallyevery class we create uses inheritance all python classes are subclasses of the special class named object this class provides very little in terms of data and behaviors (the behaviors it does provide are all double-underscore methods intended for internal use only)but it does allow python to treat all objects in the same way if we don' explicitly inherit from different classour classes will automatically inherit from object howeverwe can openly state that our class derives from object using the following syntaxclass mysubclass(object)pass