* Added approaches and articles for reverse-string. * Added code snippets for each approach. * remaned files to silence configlet. * renamed article snippets to .md to satisfy configlet. * Apply suggestions from code review Therefor != Therefore. TIL. Added missing link, so should no longer be broken. * Added more on the downfalls and gotchas of unicode. * Wrapping this up for now. * Deleted the Unicode directory for now.
5 lines
82 B
Plaintext
5 lines
82 B
Plaintext
def reverse(text):
|
|
output = list(text)
|
|
output.reverse()
|
|
|
|
return ''.join(output) |