Is there any kind of algorithm that you can apply to understand how Python will slice and output a sting?
I have
a="what's up"
And let's say I slice it like this:
print(a[-2:-9:-1])
So it gives me "u s'tah"
But what exactly does Python do first and last when slicing a string? Like, does it reverse a string first and then slice it, etc.?