title: 2 constructor class in 1 constructor class in Python
body: <p>I'm trying to put 2 constructor class in 1 constructor class with this code but:</p>
  <pre><code>class Buy:
      def __init__(self, buy_value: float, buy_currency: str) -&gt; None:
          self.buy_value = buy_value
          self.buy_currency = buy_currency
  class Sell:
      def __init__(self, sell_value: float, sell_currency: str) -&gt; None:
          self.sell_value = sell_value
          self.sell_currency = sell_currency
  
  class isCash(Buy,Sell):
      def __init__(self, buy_value, buy_currency,sell_value, sell_currency) -&gt; None:
          super().__init__(buy_value, buy_currency)
          super().__init__(sell_value,sell_currency)
  
  
  obj1 = isCash(Buy(1,&quot;mnt&quot;),Sell(2,&quot;mnt&quot;))
  print(obj1.__dict__)
  </code></pre>
  <p><strong>Result</strong></p>
  <pre><code>{'buy_value': 2, 'buy_currency': 'mnt'}
  </code></pre>
  <p>as you can see sell DICT is gone. Is there anyway that i can achieve this.</p>
  <pre><code>{
   &quot;buy&quot;: {
     &quot;buy_value&quot;: 1,
     &quot;buy_currency&quot;: &quot;MNT&quot;
   },
   &quot;sell&quot;: {
     &quot;sell_value&quot;: 1,
     &quot;sell_currency&quot;: &quot;MNT&quot;
   },
  }
  </code></pre>