reversing a string in python

This beautiful construction was not obvious for me.


>>>  'foo'[::-1]
'oof'

Leave a Reply