Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b52fe8d

Browse filesBrowse files
committed
1 parent 366f3e5 commit b52fe8d
Copy full SHA for b52fe8d

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎python 2/koans/about_generators.py‎

Copy file name to clipboardExpand all lines: python 2/koans/about_generators.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def test_coroutines_can_take_arguments(self):
6666

6767
# ------------------------------------------------------------------
6868

69-
def cube_me(self, seq):
69+
def square_me(self, seq):
7070
for x in seq:
7171
yield x * x
7272

7373
def test_generator_method_with_parameter(self):
74-
result = self.cube_me(range(2,5))
74+
result = self.square_me(range(2,5))
7575
self.assertEqual(__, list(result))
7676

7777
# ------------------------------------------------------------------
Collapse file

‎python 3/koans/about_generators.py‎

Copy file name to clipboardExpand all lines: python 3/koans/about_generators.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def test_coroutines_can_take_arguments(self):
6969

7070
# ------------------------------------------------------------------
7171

72-
def cube_me(self, seq):
72+
def square_me(self, seq):
7373
for x in seq:
7474
yield x * x
7575

7676
def test_generator_method_with_parameter(self):
77-
result = self.cube_me(range(2,5))
77+
result = self.square_me(range(2,5))
7878
self.assertEqual(__, list(result))
7979

8080
# ------------------------------------------------------------------

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.