Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96b7fb7 + 0f61718 commit 8605aa8Copy full SHA for 8605aa8
1 file changed
string/reverse_string.py
@@ -22,4 +22,7 @@ def pythonic(s):
22
r = list(reversed(s))
23
return "".join(r)
24
25
-print(pythonic(s))
+def ultra_pythonic(s):
26
+ return s[::-1]
27
+
28
+print(ultra_pythonic(s))
0 commit comments