Why its giving me a type error: Account()takes no argument

class Account():

def __inti__(self,owner,balance):
    
    self.owner= owner
    self.balance=balance
def deposit(self,dep_amt):
    self.balance=self.balannce+dep_amt
    print(f"Added{dep_amt}to the balance")
def withdrawl(self,wd_amt):
    if self.balance>=wid_amt:
        self.balance=self.balance-wd_amt
        print('Withdrawl accepted')
    else:
        print("sorry not enough balance!")
def __str__(self):
    return f"Owner:{self.owner}\nBalance:{self.balance}"

“def inti(self,owner,balance):”

That’s a typo: it should be __init__.

The default __init__ method all classes inherit takes no arguments,
which is why you get the error message you are seeing.

thanks a lot Steven…