Difference between static and dynamic data structure
Static has a fixed size
While dynamic can change
How do stacks behave
On a First In Last Out (FILO)
What are the 5 operations of a stack
Peek
Pop
Push
IsEmpty
IsFull
What does Peek do
Returns the top item without removing it
What does Pop do
Returns the top item and removes it
What does Push do
Adds a new item on top
What does IsEmpty do
Checks if the stack is empty
What does IsFull do
Check if the list is full.
*In python would be better to check the length as lists in python are dynamic