-
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?
Conversation
please accept this PR under hacktober-accpeted tag! |
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.
Hello, @Faizan96322!
I've reviewed your PR and I've left appropriate comments for each file that you've submitted.
Please make the appropriate changes and I'll merge this in.
Thank you for your submission.
try: | ||
raise Exception("Hello, World!") | ||
except Exception as e: | ||
print(str(e)) |
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.
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.
words = ["Hello", "World"] | ||
|
||
message = " ".join(words) | ||
print(message) |
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.
There is an existing implementation for this solution that you've submitted!
You can find the existing solution here. Using the .join()
method to join the elements of a list has been already implemented. I'll need you to remove this implementation from this PR as well.
from googletrans import Translator | ||
text = 'Hola Mundo!' | ||
translator = Translator() | ||
print(translator.translate(text).text) |
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:
- Can you add the version of the
googletrans
library as a comment? So that users can know what version ofgoogletrans
to use while running this program. - I need you to add an empty line at the end of this file.
Kindly implement these changes and I'll be happy to merge this PR in.
No description provided.