From f94274245559fada15e318d4977d992bc308bd7d Mon Sep 17 00:00:00 2001 From: Henocks Date: Mon, 31 Oct 2016 15:40:33 +0900 Subject: [PATCH] Update __init__.py --- data_structures/Stacks/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/Stacks/__init__.py b/data_structures/Stacks/__init__.py index 1c6488562dd1..f7e92ae2d269 100644 --- a/data_structures/Stacks/__init__.py +++ b/data_structures/Stacks/__init__.py @@ -5,7 +5,7 @@ def __init__(self): 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):