From efc38af07274597a9e5fb29a7f1d443529756ae5 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Fri, 25 Sep 2009 22:41:23 -0400 Subject: [PATCH] markup fiddling --- native-datatypes.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/native-datatypes.html b/native-datatypes.html index df615ad..c317f4b 100755 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -224,7 +224,7 @@ ZeroDivisionError: Fraction(0, 0)
 >>> a_list = ['a', 'b', 'mpilgrim', 'z', 'example']  
 >>> a_list
-['a', 'b', 'mpilgrim', 'z', 'example']
+['a', 'b', 'mpilgrim', 'z', 'example']
 >>> a_list[0]                                        
 'a'
 >>> a_list[4]                                        
@@ -361,7 +361,7 @@ ValueError: list.index(x): x not in list
>>> a_list[1] 'new'
    -
  1. You can use the del statement to delete a specific item from a list. +
  2. You can use the del statement to delete a specific item from a list.
  3. Accessing index 1 after deleting index 1 does not result in an error. All items after the deleted item shift their positional index to “fill the gap” created by deleting the item.
@@ -681,7 +681,7 @@ AttributeError: 'tuple' object has no attribute 'remove' >>> a_set {1, 3, 36, 6, 45, 15, 28} >>> a_set.remove(21) -Traceback (most recent call last): +Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: 21
    @@ -707,7 +707,7 @@ KeyError: 21 >>> a_set set() >>> a_set.pop() -Traceback (most recent call last): +Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: 'pop from an empty set'