mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-20 04:37:36 +00:00
commit
18afe45e4a
@ -5,7 +5,7 @@ class Stack:
|
|||||||
self.top = 0
|
self.top = 0
|
||||||
|
|
||||||
def is_empty(self):
|
def is_empty(self):
|
||||||
return self.top == 0
|
return (self.top == 0)
|
||||||
|
|
||||||
def push(self, item):
|
def push(self, item):
|
||||||
if self.top < len(self.stack):
|
if self.top < len(self.stack):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user