3 ms·
I can't help myself: In Python to reverse a string (or other sequence)... In [1]: "?he ,taeN"[::-1] Out[1]: 'Neat, eh?'
by carapace 7y ago
I can't help myself: In Python to reverse a string (or other sequence)...
In [1]: "?he ,taeN"[::-1]
Out[1]: 'Neat, eh?'
- guiambros 7y agoTrue, but remember that: Explicit is better than implicit. Readability counts.