index
:
micropython
master
parse-bytecode
v1.22-release
v1.24-release
MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
Aslak Raanes
summary
refs
log
tree
commit
diff
stats
homepage
log msg
author
committer
range
path:
root
/
tests
/
basics
/
tuple_count.py
blob: 7f42ede28c75586c61467026c88b0a171a4275c8 (
plain
) (
blame
)
1
2
3
4
5
a = (1, 2, 3) a = a + a + a b = (0, 0, a, 0, a, 0) print(a.count(2)) print(b.count(a))