mirror of https://github.com/python/cpython
Fix misleading example.
This commit is contained in:
parent
07c19eaa20
commit
87426cb151
|
@ -547,8 +547,9 @@ list or clear it entirely::
|
||||||
|
|
||||||
The built-in function :func:`len` also applies to lists::
|
The built-in function :func:`len` also applies to lists::
|
||||||
|
|
||||||
|
>>> a = ['a', 'b', 'c', 'd']
|
||||||
>>> len(a)
|
>>> len(a)
|
||||||
8
|
4
|
||||||
|
|
||||||
It is possible to nest lists (create lists containing other lists), for
|
It is possible to nest lists (create lists containing other lists), for
|
||||||
example::
|
example::
|
||||||
|
|
Loading…
Reference in New Issue