If there is a string initialized in python:
s="SLICE"
When trying to run this code:
print(s[4::-1]) #Line-1
print(s[4:-1:-1]) #Line2
I thought both are the same thing and give the same output. Instead, Line 1 outputs as expected but Line 2 does not.