circuitpython/tests/basics/tuple_slice.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
77 B
Python
Raw Normal View History

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