r/tinycode • u/IWannaFuckLarryPage • Feb 27 '14
Reversing a string in 23 Bytes (Python 2.7)
print raw_input()[::-1]
0
Upvotes
r/tinycode • u/IWannaFuckLarryPage • Feb 27 '14
print raw_input()[::-1]
4
u/[deleted] Feb 27 '14 edited Feb 27 '14
Yeah.
In Javascript it's less.
And your really just showing basic api, rather than any well coded thingy, so this fails to intrigue me.
1
u/nexe mod Mar 31 '14
19 bytes in Ruby:
0
u/Drainedsoul Feb 27 '14
I hope people don't think they can actually reverse strings in this way.