Skip to content

Commit 18afe45

Browse files
Merge pull request TheAlgorithms#45 from Henocks/patch-1
Update __init__.py
2 parents ba16772 + f942742 commit 18afe45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/Stacks/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def __init__(self):
55
self.top = 0
66

77
def is_empty(self):
8-
return self.top == 0
8+
return (self.top == 0)
99

1010
def push(self, item):
1111
if self.top < len(self.stack):

0 commit comments

Comments
 (0)