From dd671fd7380d6b9bc7610df75e82b8a21c6eb4e9 Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Thu, 12 Jul 2018 21:09:31 +0300 Subject: [PATCH] Accept exit to exit the program when taking arguments --- script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.py b/script.py index d831a05..27e4466 100644 --- a/script.py +++ b/script.py @@ -194,7 +194,7 @@ class PromptUser: )) print(" "*4+"[0] exit\n") choice = input("> ") - while not choice.lower() in choices+choicesByIndex: + while not choice.lower() in choices+choicesByIndex+["exit"]: print("Invalid input\n") programModeIndex = input("> ")