index
:
user/sven/micropython.git
for-upstream
master
old
stmhal-flash
origin/HEAD
origin/docs/library/bluetooth
origin/master
origin/parse-bytecode
origin/v1.22-release
origin/v1.24-release
The MicroPython project
Sven Wegener
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
tests
/
basics
/
tuple_count.py
blob: 7f42ede28c75586c61467026c88b0a171a4275c8 (
plain
)
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))