reversing a string in python

This beautiful construction was not obvious for me.


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

Vibe code with your voice

Stop fighting speech recognition.
Just talk → fix mistakes later

"... _brings_ hello world"   ❌
          ↓
"... _prints_ hello world"   ✅

Get handsfree.vc on Google Play

Categories: python

Updated: