Concept icon
Concept

Mimicking Stacks with Lists

Lists can be used as stacks by using append() to add an item to the top, and pop() without an index to retrieve the element from the top.

Example:

0

1

Concept icon
Updated 2021-06-01

Contributors are:

Who are from:

References


Tags

Python Programming Language

Data Science