Skip to content

User Guide

After installing Data Structures Python, import and use your data structures like any other Python module.


Quick Examples

Stack

```python

from data_structures.stack import Stack

s = Stack()

s.push(1)

s.push(2)

print(s.pop()) # Display 2

print(s.peek()) # Display 1

print(s.is_empty()) # False

For more complete demonstrations, see the notebooks in the examples/ folder.