micropython/tests/basics/list_slice_3arg.py

10 wiersze
128 B
Python
Czysty Zwykły widok Historia

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