Skip to content

Commit 106e447

Browse files
committed
A bit better example for pop, proving by observation of the test result that the argument to pop is relative to the left of the list, not the end.
1 parent 5c87af7 commit 106e447

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python 2/koans/about_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_insertions(self):
7171
self.assertEqual(__, knight)
7272

7373
def test_popping_lists(self):
74-
stack = [10, 20, 30]
74+
stack = [10, 20, 30, 40]
7575
stack.append('last')
7676

7777
self.assertEqual(__, stack)

python 3/koans/about_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_insertions(self):
7272
self.assertEqual(__, knight)
7373

7474
def test_popping_lists(self):
75-
stack = [10, 20, 30]
75+
stack = [10, 20, 30, 40]
7676
stack.append('last')
7777

7878
self.assertEqual(__, stack)

0 commit comments

Comments
 (0)