Stackily

Custom LIFO stack data structure implementation.

Methods

def push(item) / pop() / peek()

Pushes item onto stack, pops top element, or peeks at top item.

def size() -> int / is_empty() -> bool / to_list() -> list

Returns stack size, empty state check, or converts stack items to a list.