Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 909e3f2

Browse files
now accepts upper case 'Y' or 'N'
1 parent ba570ba commit 909e3f2

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)

AltStyle によって変換されたページ (->オリジナル) /