Phrase reversals: Difference between revisions

→‎{{header|Python}}: Comment on extended slicing notation.
m (Change format to a list for "see also")
(→‎{{header|Python}}: Comment on extended slicing notation.)
Line 271:
 
=={{header|Python}}==
These examples use the [https://docs.python.org/2/whatsnew/2.3.html#extended-slices extended slicing] notation of <code>[::-1]</code> to reverse strings and lists of strings:
<lang python>>>> phrase = "rosetta code phrase reversal"
>>> phrase[::-1] # Reversed.
Anonymous user