From 5b3f9eff6b539db742f404cf1d28fd876b797371 Mon Sep 17 00:00:00 2001 From: Benjamin Adovasio Date: Sun, 15 Mar 2026 16:27:32 -0400 Subject: [PATCH] added __init__ --- Project 5/Stack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Project 5/Stack.py b/Project 5/Stack.py index 29d8e01..4371bdd 100644 --- a/Project 5/Stack.py +++ b/Project 5/Stack.py @@ -19,7 +19,9 @@ class Stack[T]: def __init__(self): - pass + ''' initializes an empty stack ''' + self._data = LinkedList() + def __len__(self) -> int: ''' allows the len function to be called using an ArrayStack object, e.g., stack = ArrayStack()