We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba16772 commit f942742Copy full SHA for f942742
data_structures/Stacks/__init__.py
@@ -5,7 +5,7 @@ def __init__(self):
5
self.top = 0
6
7
def is_empty(self):
8
- return self.top == 0
+ return (self.top == 0)
9
10
def push(self, item):
11
if self.top < len(self.stack):
0 commit comments