Conversation
Added join method while returning the string
| # creating a string slice that starts at the end of the string, and moves backwards. | ||
| # the slice statement [::-1] means start at the end of the string and end at position 0, | ||
| # move with the step negative one, which means one step backwards. | ||
| return "".join(word[::-1]) |
There was a problem hiding this comment.
You can just do return word[::-1] for this task.
Also, I feel like the point of this repository is to show the underlying implementations instead of using existing python ones.
There was a problem hiding this comment.
I did the same in my previous commit, but it was showing Process completed with exit code 1 error, that's why I added the join method but still, it's showing the same error.
okay, I am new here. I will surely keep that in mind from next time.
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions! |


Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.