Creating own LIFO Queue in Python using object references
Hey there A few years ago I took a programming course about java in school. We tried to create our own bank system: To create a list of transactions of a bank-account we referenced each transaction-object of each account respectively to the transaction-object before. Thereby creating sort of a LIFO list of object-references. Of course this âlistâ was different for each bank-account. âšI am now wondering myself, whether this approach has any benefits compared to stacks? Currently I am trying to recreate the program in python, but I canât figure out an easy way to implement that system. It seems far easier to solve the problem with a dictionary, but than again, a dictionary would be directly accessible and I guess in theory therefore not as safe? I hope that made sense ^^â