Hi guys,
I currently have a project where i have to create an abstract data type in python. Otherwise known as a lIFO. I understand functions in python to append, pop data in and out of the stack. However, I need some guidance on declaring the top of the stack and declaring the size of the stack. A minimum of 100 single characters will need to be stored. In addition, it has been stated that this is an unfair stack and capital letters will move past every lowercase letter within the stack until it reaches another capital letter as they have a higher weight. I'm not to sure on how to create a function for that. Once the stack has been implemented, an SQL lite 3 database will be provided with film names from a specific year. Once the year is inputted, the films will be printed normally and then printed as if they were put into the unfair stack. Here is a full link to the brief. Any guidance will be really appreciated thankyou.
https://files.coventry.aula.education/2251931fc2e94b6f8fbdecfc6f69f804coursework.pdf