From 521376786df3318faaba4ca14c77ede22e44909f Mon Sep 17 00:00:00 2001 From: viserion999 <62100803+viserion999@users.noreply.github.com> Date: Thu, 1 Oct 2020 22:52:09 +0530 Subject: [PATCH] Update 8balls-magic.py the empty string can be checked like if(not string): --- 8balls-magic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8balls-magic.py b/8balls-magic.py index 956c2cc..5781b43 100644 --- a/8balls-magic.py +++ b/8balls-magic.py @@ -9,7 +9,7 @@ answers = random.randint(1,8) - if question == "": + if not question: sys.exit() elif answers == 1: