Jul-01-2019, 09:30 AM
If a slice with positive step like
[::1]then the default value of starting point and ending point is
[0:len(list):1]but the default values for negative step like [::-1] is
[len(list)-1:None:-1]Is that right ? Correct me if i'm wrong please, and are there some mechanisms explain why python can switch between default values like that ? Thank you guys so much