circuitpython/tests/basics/tuple_slice.py
Damien George b5186c9271 tests/basics: Split out specific slice tests to separate files.
So they can be automatically skipped if slice is not enabled.
2019-10-29 22:22:37 +11:00

8 lines
77 B
Python

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