Closed ngiachou closed 6 years ago
This class will be either the "main" class or one step before it. It should have the following attributes:
balance
history_of_transactions
It will also have the following methods:
__init__()
add_transaction()
show_transaction_history()
This class will be either the "main" class or one step before it. It should have the following attributes:
balance
which is the current balance (e.g. 350)history_of_transactions
which is a list with all the transactions in chronological orderIt will also have the following methods:
__init__()
the constructor setting the initial values of its attributesadd_transaction()
creates and adds a transaction into the list of transactionsshow_transaction_history()
return a list of transactions until now in chronological order