Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Faizan96322
Copy link

No description provided.

@Faizan96322
Copy link
Author

please accept this PR under hacktober-accpeted tag!

Copy link
Owner

@Goku-kun Goku-kun left a 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.

Comment on lines +1 to +4
try:
raise Exception("Hello, World!")
except Exception as e:
print(str(e))
Copy link
Owner

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.

Comment on lines +1 to +4
words = ["Hello", "World"]

message = " ".join(words)
print(message)
Copy link
Owner

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.

Comment on lines +1 to +4
from googletrans import Translator
text = 'Hola Mundo!'
translator = Translator()
print(translator.translate(text).text)
Copy link
Owner

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:

  1. Can you add the version of the googletrans library as a comment? So that users can know what version of googletrans to use while running this program.
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants