File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def test_use_pass_for_iterations_with_no_body(self):
9494 # ------------------------------------------------------------------
9595
9696 def test_all_iteration_methods_work_on_any_sequence_not_just_lists (self ):
97- # Ranges are an iteratable sequence
97+ # Ranges are an iterable sequence
9898 result = map (self .add_ten , range (1 , 4 ))
9999 self .assertEqual (__ , list (result ))
100100
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def test_matching_literal_text_how_many(self):
3030 """
3131 Lesson 1 -- How many matches?
3232
33- The default behaviour of most regular extression engines is
33+ The default behaviour of most regular expression engines is
3434 to return just the first match. In python you have the
3535 following options:
3636
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def test_double_list_comprehension(self):
4646 def test_creating_a_set_with_set_comprehension (self ):
4747 comprehension = { x for x in 'aabbbcccc' }
4848
49- self .assertEqual (__ , comprehension ) # remeber that set members are unique
49+ self .assertEqual (__ , comprehension ) # remember that set members are unique
5050
5151 def test_creating_a_dictionary_with_dictionary_comprehension (self ):
5252 dict_of_weapons = {'first' : 'fear' , 'second' : 'surprise' ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def test_map_transforms_elements_of_a_list(self):
4141
4242 self .assertNotEqual (list , mapping .__class__ )
4343 self .assertEqual (__ , mapping .__class__ )
44- # In Python 3 built in iterator funcs return iteratable view objects
44+ # In Python 3 built in iterator funcs return iterable view objects
4545 # instead of lists
4646
4747 for item in mapping :
@@ -116,7 +116,7 @@ def test_use_pass_for_iterations_with_no_body(self):
116116 # ------------------------------------------------------------------
117117
118118 def test_all_iteration_methods_work_on_any_sequence_not_just_lists (self ):
119- # Ranges are an iteratable sequence
119+ # Ranges are an iterable sequence
120120 result = map (self .add_ten , range (1 ,4 ))
121121 self .assertEqual (__ , list (result ))
122122
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def test_matching_literal_text_how_many(self):
2222 """
2323 Lesson 1 How many matches?
2424
25- The default behaviour of most regular extression engines is to return just the first match.
25+ The default behaviour of most regular expression engines is to return just the first match.
2626 In python you have the next options:
2727
2828 match() --> Determine if the RE matches at the beginning of the string.
@@ -92,7 +92,7 @@ def test_matching_set_character(self):
9292 def test_anything_but_matching (self ):
9393 """
9494 Lesson 2 Using character set ranges
95- Occsionally , you'll want a list of characters that you don't want to match.
95+ Occasionally , you'll want a list of characters that you don't want to match.
9696 Character sets can be negated using the ^ metacharacter.
9797
9898 """
You can’t perform that action at this time.
0 commit comments