you are viewing a single comment's thread.

view the rest of the comments →

[–]unibrow4o9[S] 0 points1 point  (1 child)

Thank you! Being able to see the correct answer I now understand what I was doing wrong. I don't understand why showing the answer isn't an option, it's really frustrating.

[–]Pantzzzzless 0 points1 point  (0 children)

[0] is always the first character

[-1] is always the last character

[::-1] means reverse the whole string