how to create different types bank accounts with different interest rates, overdraft limitd etc. in python

so this is my code i am using spyder editor and i also have some files that imported like a customer account and admin account

from customer_account import CustomerAccount

from admin import Admin

from exceptionHandling import exceptionHandling, float_input

import load_customers

accounts_list = []

admins_list = []

class BankSystem(object):

def __init__(self):

self.accounts_list = []

self.admins_list = []

self.load_bank_data()

def load_bank_data(self):

# create customers

account_no = 1234

customer_1 = CustomerAccount("Adam", "Smith", ["14", "Wilcot Street", "Bath", "B5 5RT"], account_no, 5000.00)

self.accounts_list.append(customer_1)

account_no+=1

customer_2 = CustomerAccount("David", "White", ["60", "Holborn Viaduct", "London", "EC1A 2FD"], account_no, 3200.00)

self.accounts_list.append(customer_2)

account_no+=1

customer_3 = CustomerAccount("Alice", "Churchil", ["5", "Cardigan Street", "Birmingham", "B4 7BD"], account_no, 18000.00)

self.accounts_list.append(customer_3)

account_no+=1

customer_4 = CustomerAccount("Ali", "Abdallah",["44", "Churchill...

Read More »

By: StackOverFlow - 5 days ago

Related Posts