mirror of
https://github.com/micropython/micropython.git
synced 2025-09-05 17:30:41 +02:00
14 lines
153 B
Python
14 lines
153 B
Python
# builtin len
|
|
|
|
print(len(()))
|
|
print(len((1,)))
|
|
print(len((1, 2)))
|
|
|
|
print(len([]))
|
|
x = [1, 2, 3]
|
|
print(len(x))
|
|
|
|
f = len
|
|
print(f({}))
|
|
print(f({1:2, 3:4}))
|