reversing a string in python

This beautiful construction was not obvious for me.


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

Updated: