[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A curious bit of code...

On 02/13/2014 01:24 PM, Roy Smith wrote:
>   Emile van Sebille wrote:
>> But I didn't see this one:
>> s[::len(s)-1]
> I love it.  I need to add this to my list of Python trivia questions.

Great interview question:  What does this do?  What is its weakness?  How would you fix it?