From 9e8153eb1f57f1b81c5f977a4aff6cf578848a2a Mon Sep 17 00:00:00 2001 From: Benjamin Adovasio Date: Sun, 15 Mar 2026 16:30:12 -0400 Subject: [PATCH] added is_empty --- Project 5/Stack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project 5/Stack.py b/Project 5/Stack.py index f70543a..d7dfc05 100644 --- a/Project 5/Stack.py +++ b/Project 5/Stack.py @@ -67,7 +67,7 @@ class Stack[T]: Returns: True if the stack is empty, False otherwise ''' - pass + return len(self._data) == 0 def __str__(self) -> str: ''' returns an str implementation of the Stack '''