What is the start and stop value when we are doing [::-1]
for any sequence?
I know it will reverse the string. But want to understand how it is implemented.
s[:]
- for this start is 0
and stop is len(s)
.
So how is it working for s[::-1]
Can somebody please explain how it is implemented?