You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
b5186c9271
So they can be automatically skipped if slice is not enabled.
8 lines
77 B
Python
8 lines
77 B
Python
# tuple slicing
|
|
|
|
x = (1, 2, 3 * 4)
|
|
|
|
print(x[1:])
|
|
print(x[:-1])
|
|
print(x[2:3])
|