Skip to content

Commit

Permalink
Merge pull request keon#102 from Akyshnik/patch-1
Browse files Browse the repository at this point in the history
Add different implementation of reverse_string.py
  • Loading branch information
keon authored Oct 26, 2017
2 parents 96b7fb7 + 0f61718 commit 8605aa8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion string/reverse_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ def pythonic(s):
r = list(reversed(s))
return "".join(r)

print(pythonic(s))
def ultra_pythonic(s):
return s[::-1]

print(ultra_pythonic(s))

0 comments on commit 8605aa8

Please sign in to comment.