circuitpython/tests/basics/tuple_slice.py
2021-05-03 14:01:18 -07:00

8 lines
77 B
Python

# tuple slicing
x = (1, 2, 3 * 4)
print(x[1:])
print(x[:-1])
print(x[2:3])