Stack and Queue
Learn about the stack and queue data structures in Python.
We'll cover the following
A data structure refers to an arrangement of data in memory. Popular data structures include stacks, queues, trees, graphs, and maps.
Stack data structure
A stack is a Last-in, First-out (LIFO) list, i.e., the last element that is added to the list is the first element that is removed from it.
Get hands-on with 1200+ tech skills courses.