Update __init__.py

This commit is contained in:
Henocks 2016-10-31 15:40:33 +09:00 committed by GitHub
parent ba16772456
commit f942742455

View File

@ -5,7 +5,7 @@ class Stack:
self.top = 0
def is_empty(self):
return self.top == 0
return (self.top == 0)
def push(self, item):
if self.top < len(self.stack):