From b0959133348dfbf491e53485bd0fd5c14159ca1a Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 17 Nov 2019 13:03:38 -0500 Subject: [PATCH] allow exit keyword to be entered case-insensitive --- comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment.py b/comment.py index 46bf2ee..e237aaf 100755 --- a/comment.py +++ b/comment.py @@ -96,6 +96,6 @@ if __name__ == '__main__': except (KeyboardInterrupt, EOFError): text = 'exit' print(text) - if text == 'exit': + if text.lower() == 'exit': break comment(text)