mylist[:] and mylist[::]?mylist[::0] to raise an error since negative steps are allowed?No. Both result in slice(None, None, None).
Positive strides go forwards. Negative strides go backwards. Zero strides go... nowhere? How exactly would that work? An infinite sequence of a single value?
No difference between mylist[:] and mylist[::]
mylist[::0]
This implies from starting index to last index without any step, don't know in what world it would be possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With