diff --git a/data_structures/stacks/stack.py b/data_structures/stacks/stack.py index 66af8c025..7f979d927 100644 --- a/data_structures/stacks/stack.py +++ b/data_structures/stacks/stack.py @@ -17,7 +17,7 @@ class Stack(object): self.limit = limit def __bool__(self): - return not bool(self.stack) + return bool(self.stack) def __str__(self): return str(self.stack)