We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c67f61 commit 8e67ac3Copy full SHA for 8e67ac3
data_structures/stacks/stack.py
@@ -17,7 +17,7 @@ def __init__(self, limit=10):
17
self.limit = limit
18
19
def __bool__(self):
20
- return not bool(self.stack)
+ return bool(self.stack)
21
22
def __str__(self):
23
return str(self.stack)
0 commit comments