Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 95178a3

Browse files
authored
Merge pull request #640 from AntoonBeres/accept-upper-y
now accepts upper case 'Y' or 'N'
2 parents 5be3f87 + 909e3f2 commit 95178a3

File tree

1 file changed

+2
-2
lines changed
  • Scripts/API/Google-Py Translator

1 file changed

+2
-2
lines changed

Scripts/API/Google-Py Translator/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def from_file(src, dst):
5353
print("\nTranslated text -> \n\n{}\n\n".format(output))
5454
print("-" * 100)
5555

56-
x = input("\nSave output to a file? y/n : ")
56+
x = input("\nSave output to a file? y/n : ").lower()
5757

5858
if x == "y":
5959
x = input("Enter file name : ")
@@ -79,7 +79,7 @@ def main():
7979
8080
"""
8181

82-
choice = input(prompt)
82+
choice = input(prompt).lower()
8383

8484
if choice == "q":
8585
print("Bye")

0 commit comments

Comments
 (0)