]> granicus.if.org Git - python/commitdiff
Fix misleading example.
authorGeorg Brandl <georg@python.org>
Fri, 9 Nov 2007 13:08:48 +0000 (13:08 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 9 Nov 2007 13:08:48 +0000 (13:08 +0000)
Doc/tutorial/introduction.rst

index e209bfcc0e84e23adab643b1000c0b1b28fdab9d..7b663cc1a4e43a005c0abe1c0e717d711449c9fa 100644 (file)
@@ -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::