Hello Everyone,

There was a query in this list regarding reversing a string and someone suggested that [::-1] does that.

I tried that _expression_ in my intepreter and various other combination but still can't comprehend how the _expression_ works. I could understand[:] ,  [n:] or  [:n] . But what meaning does it have in using two colons inside array index while slicing?. A concise explanation would suppress my curiosity.

Thank You.
--
Intercodes
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to