-
Notifications
You must be signed in to change notification settings - Fork 73
using list and join function #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from googletrans import Translator | ||
text = 'Hola Mundo!' | ||
translator = Translator() | ||
print(translator.translate(text).text) | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
try: | ||
raise Exception("Hello, World!") | ||
except Exception as e: | ||
print(str(e)) | ||
Comment on lines
+1
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an existing implementation for this solution that you've submitted! You can find the existing solution here. The concept is the same (to use exceptions) so I'll be needing you to remove this submission from your PR. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
words = ["Hello", "World"] | ||
|
||
message = " ".join(words) | ||
print(message) | ||
Comment on lines
+1
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an existing implementation for this solution that you've submitted! You can find the existing solution here. Using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice implementation! I'll be accepting this PR for this solution after we've made a couple of changes to it.
Here's the list of changes I want you to make:
googletrans
library as a comment? So that users can know what version ofgoogletrans
to use while running this program.Kindly implement these changes and I'll be happy to merge this PR in.