mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
Implement slicing for lists.
This commit is contained in:
@@ -16,3 +16,7 @@ print(x)
|
||||
|
||||
x += [2, 1]
|
||||
print(x)
|
||||
|
||||
print(x[1:])
|
||||
print(x[:-1])
|
||||
print(x[2:3])
|
||||
|
||||
Reference in New Issue
Block a user