Slide 12
Slide 12 text
LEN()
>>> len([1, 2, 3])
3
>>> [1, 2, 3].length()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'list' object has no attribute 'length'
>>> [1, 2, 3].len()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'list' object has no attribute 'len'