summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-11-09 13:08:48 (GMT)
committerGeorg Brandl <georg@python.org>2007-11-09 13:08:48 (GMT)
commit87426cb151202cac37f24aae43d73f5a80b11b1b (patch)
tree5e01586d262ec52681a6d2cf0039e112629db1ca /Doc/tutorial
parent07c19eaa2000b8778c405a9cab5cb7603f318682 (diff)
downloadcpython-87426cb151202cac37f24aae43d73f5a80b11b1b.zip
cpython-87426cb151202cac37f24aae43d73f5a80b11b1b.tar.gz
cpython-87426cb151202cac37f24aae43d73f5a80b11b1b.tar.bz2
Fix misleading example.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/introduction.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index e209bfc..7b663cc 100644
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -547,8 +547,9 @@ list or clear it entirely::
The built-in function :func:`len` also applies to lists::
+ >>> a = ['a', 'b', 'c', 'd']
>>> len(a)
- 8
+ 4
It is possible to nest lists (create lists containing other lists), for
example::