exercises the history could be implemented as list containing an ordered sequence to transactions transaction itself could be defined by class with an action (deposit or withdrawaland an amount each time withdrawal or deposit is made new transaction record should be added to transaction history list next provide function (which could be called something like write_account_transactions_to_csv()that can take an account and then write each of the transactions it holds out to csv filewith each transaction type and the transaction amount separated by comma the following sample application illustrates how this function might be usedprint('starting'acc accounts currentaccount(' ''john' acc deposit( acc withdraw( print('writing account transactions'write_account_transaction_to_csv('accounts csv'accprint('done'the contents of the csv file would then be