title: how to access parent class attribute in base class in python?
body: <p>I am a newbie to python development
  I was trying to access parent class attribute in base class but it is giving me the error as</p>
  <p>Traceback (most recent call last):
  line 41, in 
  account.getAccountInfo()
  line 24, in getAccountInfo
  print(&quot;ID &quot; + str(self.cust.custID))
  AttributeError: 'Account' object has no attribute 'cust'</p>
  <p>Here is my code</p>
  <pre><code>class Customer:
      def __int__(self, custID=00000, cust_name=&quot;IJK&quot;, address=&quot;CABI&quot;, contact=9090909090):
          self.custID = custID
          self.cust_name = cust_name
          self.address = address
          self.contact = contact
  
  
  class Account(Customer):
      def __int__(self, accountID=89839832389, balance=89999999.99):
          self.cust = super.__int__(self)
          self.accountID = accountID
          self.balance = balance
  
      def getAccountInfo(self):
          print(&quot;ID &quot; + str(self.cust.custID))
          print(&quot;Name &quot; + str(self.cust.cust_name))
          print(&quot;Account ID &quot; + str(self.cust.accountID))
  
      def deposit(self, balance=2000, savings=&quot;true&quot;):
          return self.balance + balance
  
      def withdraw(self, balance=500):
          return self.balance - balance
  
      def getBalance(self):
          return self.balance
  
  
  account = Account()
  account.getAccountInfo()
  print(&quot;Actual balance &quot; + str(account.getBalance()))
  account.deposit()
  print(&quot;Balance after deposit &quot; + str(account.getBalance()))
  account.withdraw()
  print(&quot;Balance after withdraw &quot; + str(account.getBalance()))
  </code></pre>