This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
You've already forked circuitpython
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
be313ea215
circuitpython
/
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 15:12:56 -04: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 15:17:06 -04:00
x
=
list
(
range
(
9
)
)
print
(
x
[
:
:
-
1
]
)
print
(
x
[
:
:
2
]
)
print
(
x
[
:
:
-
2
]
)