title: Hybrid Inheritance in Python
body: <p>I am trying to implement multiple hybrid inheritance in python, it is giving answer also but I am wondering what is the reason behind the sequence of the answer, for this code:</p>
  <pre><code>class GrandPa:
      def __init__(self):
          print(&quot;Grand Pa&quot;)
  
  class Father(GrandPa):
      def __init__(self):
          super().__init__()
          print(&quot;Father&quot;)
  
  class Mother(GrandPa):
      def __init__(self):
          super().__init__()
          print(&quot;Mother&quot;)
  
  
  class child(Father, Mother):
      def __init__(self):
          super().__init__()
          print(&quot;Child&quot;)
  
  c = child()
  </code></pre>
  <p>OUTPUT</p>
  <pre><code>Grand Pa
  Mother
  Father
  Child
  </code></pre>
  <p>In the child class we have taken Father class before the mother, so shouldn't Father be printed before Mother? Is there any logic behind this sequence?</p>