We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d54395 commit 6891cc5Copy full SHA for 6891cc5
1 file changed
stringutils/__init__.py
@@ -26,6 +26,12 @@ def lines(string, keepends=False):
26
"""
27
return string.splitlines(keepends)
28
29
+def reverse(string):
30
+ """
31
+ Reverse the order of the characters in a string.
32
33
+ return string[::-1]
34
+
35
def words(string):
36
37
Split a string into a list of words, which were delimited by one or more
0 commit comments