index
:
suspect-devices/circuitpython
1.x
2.x
3.x
4.0.x
4.1.x
4.x
5.0.x
5.1.x
5.3.x
6.0.x
6.1.x
6.2.x
audiocore-rawsample-sinewave
azure
azure-pipelines
cross
dm-mixer
dynamic-native-modules
encoding
esp-extra-scripts
fix_typo_spanish
iabdalkader-cc3k-update
jepler-try-ubuntu-20.04
main
master
parse-bytecode
reentrant-gc
stable
travis-clang
travis-esp8266
travis-stackless
travis-testing
type_hints
CircuitPython - a Python implementation for teaching coding with microcontrollers
feurig
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
tests
/
basics
/
filter.py
blob: 5883e3d00b613910c42a6ac4a870ed8c2961c140 (
plain
)
1
2
print
(
list
(
filter
(
lambda
x
:
x
&
1
,
range
(
-
3
,
4
))))
print
(
list
(
filter
(
None
,
range
(
-
3
,
4
))))