A specific example of my question is, \"How can I get \'3210\' in this example?\"
>>> foo = \'0123456\' >>> foo[0:4] \'0123\' >>> foo[::-1] \'6543210\' >>>
If you're looking for something a little more human-readable than extended slice notation:
>>> foo = '0123456' >>> ''.join(reversed(foo[0:4])) '3210'