This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
mirror of
https://github.com/micropython/micropython.git
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
8422cac088
micropython
/
tests
/
basics
/
list_slice_3arg.py
10 lines
128 B
Python
Raw
Normal View
History
Unescape
Escape
objlist: Implement support for arbitrary (3-arg) slices.
2014-05-25 20:12:56 +01:00
x
=
list
(
range
(
10
)
)
print
(
x
[
:
:
-
1
]
)
print
(
x
[
:
:
2
]
)
print
(
x
[
:
:
-
2
]
)
tests: Add small testcase for 3-arg slices.
2014-05-25 20:17:06 +01:00
x
=
list
(
range
(
9
)
)
print
(
x
[
:
:
-
1
]
)
print
(
x
[
:
:
2
]
)
print
(
x
[
:
:
-
2
]
)