From 909e3f2b0487f97db0902162b558e1d492c0c491 Mon Sep 17 00:00:00 2001 From: Whity25 Date: Sun, 10 Oct 2021 23:28:47 +0200 Subject: [PATCH] now accepts upper case 'Y' or 'N' --- Scripts/API/Google-Py Translator/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/API/Google-Py Translator/main.py b/Scripts/API/Google-Py Translator/main.py index 158bd2701..1a8aeff0a 100644 --- a/Scripts/API/Google-Py Translator/main.py +++ b/Scripts/API/Google-Py Translator/main.py @@ -53,7 +53,7 @@ def from_file(src, dst): print("\nTranslated text -> \n\n{}\n\n".format(output)) print("-" * 100) - x = input("\nSave output to a file? y/n : ") + x = input("\nSave output to a file? y/n : ").lower() if x == "y": x = input("Enter file name : ") @@ -79,7 +79,7 @@ def main(): """ - choice = input(prompt) + choice = input(prompt).lower() if choice == "q": print("Bye")