Merge pull request #45 from Henocks/patch-1

Update __init__.py
This commit is contained in:
Chetan Kaushik 2016-10-31 12:24:37 +05:30 committed by GitHub
commit 18afe45e4a

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):