We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following solution does not work:
class ReverseStringAlt(object): def reverse_string_alt(string): if string: return string[::-1] return string def reverse_string_alt2(string): if string: return ''.join(reversed(string)) return string
The text was updated successfully, but these errors were encountered:
class ReverseStringAlt(object): def reverse_string_alt(self,string): if string: return string[::-1] return string
a=ReverseStringAlt() s=input() k=a.reverse_string_alt(s) print(k)
Sorry, something went wrong.
@Harshavika is my solution correct?
@anthonyattard , this is your code which I just changed a little bit to run which gives correct answer. https://ideone.com/Tm5EE0.
No branches or pull requests
The following solution does not work:
The text was updated successfully, but these errors were encountered: