micropython/tests/basics/list_slice_3arg.py

5 lines
64 B
Python

x = list(range(10))
print(x[::-1])
print(x[::2])
print(x[::-2])