Skip to content

Commit 0118195

Browse files
correct spelling of 'forth' to 'fourth' in about_comprehension.test_creating_a_dictionary_with_dictionary_comprehension.
1 parent 3685a39 commit 0118195

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python2/koans/about_comprehension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_creating_a_set_with_set_comprehension(self):
5050

5151
def test_creating_a_dictionary_with_dictionary_comprehension(self):
5252
dict_of_weapons = {'first': 'fear', 'second': 'surprise',
53-
'third':'ruthless efficiency', 'forth':'fanatical devotion',
53+
'third':'ruthless efficiency', 'fourth':'fanatical devotion',
5454
'fifth': None}
5555

5656
dict_comprehension = { k.upper(): weapon for k, weapon in dict_of_weapons.iteritems() if weapon}

python3/koans/about_comprehension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_creating_a_set_with_set_comprehension(self):
5050

5151
def test_creating_a_dictionary_with_dictionary_comprehension(self):
5252
dict_of_weapons = {'first': 'fear', 'second': 'surprise',
53-
'third':'ruthless efficiency', 'forth':'fanatical devotion',
53+
'third':'ruthless efficiency', 'fourth':'fanatical devotion',
5454
'fifth': None}
5555

5656
dict_comprehension = { k.upper(): weapon for k, weapon in dict_of_weapons.items() if weapon}

0 commit comments

Comments
 (0)