This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
b32b0d38fe
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
]
)
Reference in New Issue
Copy Permalink