Skip to content

Commit f942742

Browse files
authored
Update __init__.py
1 parent ba16772 commit f942742

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)