def AddNewCard(self): NewCard = Card() Bank.AccAndCardsAssoc[NewCard.CardNo] = self.AccNo Bank.SaveFile() Bank.LoadFile()
def AddAccount(self, Name, Bal, MobileNo, AadharNo): NewAcc = Account(Name, Bal, MobileNo, AadharNo) NewCard = Card() Bank.AccAndCardsAssoc[NewCard.CardNo] = NewAcc.AccNo Bank.SaveFile() Bank.LoadFile()