Why is code not running?

class Account:
def init(self,title,balance=0):
self.title = title
self.balance = balance

class SavingsAccount(Account):
def init(self, title, balance, interestRate=0):
super().init(title, balance)
self.interestRate = interestRate

example usage

account1 = Account(“Ashish”, 5000)
savings1 = SavingsAccount(“Ashish”,5000,5)

@praveenkumar01092001

What is the error you are getting?

As I can see you have created the object but not printed that

TypeError: Account() takes no arguments

@praveenkumar01092001

Why you are passing balance= 5000
As you have already declared it as 0 beforehand only

how to get output , can u write the code .

@praveenkumar01092001

class Account:
def init(self,title,balance):
self.title = title
self.balance = balance

class SavingsAccount(Account):
def init(self, interestRate):
super().init(title, balance)
self.interestRate = interestRate

example usage
account1 = Account(“Ashish”, 5000)
savings1 = SavingsAccount(“Ashish”,5000,5)