Logo
Explore Help
Register Sign In
exercism/python
1
0
Fork 0
You've already forked python
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
93744302aa5f36eabcbafd3402f5ca766f71a2bc
python/exercises/practice/reverse-string/.approaches/built-in-list-reverse/snippet.txt

5 lines
82 B
Plaintext
Raw Normal View History

[Reverse String]: Add Approaches, Performance, and Unicode Articles (#3609) * 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.
2025-02-14 18:32:13 -08:00
def reverse(text):
output = list(text)
output.reverse()
return ''.join(output)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 74ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API