diff --git a/koans/about_slices.py b/koans/about_slices.py index 2848963..ef56eb9 100644 --- a/koans/about_slices.py +++ b/koans/about_slices.py @@ -8,7 +8,7 @@ def test_slice_with_index(): """ str1 = "Python anywhere" - assert str1[2] == ___ + assert str1[2] == 't' def test_slice_with_index_minus_one(): @@ -18,7 +18,7 @@ def test_slice_with_index_minus_one(): str1 = "Python anywhere" - assert str1[-1] == ___ + assert str1[-1] == 'e' def test_slice_with_negative_index(): @@ -29,7 +29,7 @@ def test_slice_with_negative_index(): str1 = "Python anywhere" - assert str1[-4] == ___ + assert str1[-4] == 'h' def test_slice_with_substring(): @@ -43,7 +43,7 @@ def test_slice_with_substring(): str1 = "Python anywhere" - assert str1[2:9] == ___ + assert str1[2:9] == 'thon an' def test_slice_with_diff_indexes(): @@ -53,7 +53,7 @@ def test_slice_with_diff_indexes(): str1 = "Python anywhere" - assert str1[1:-1] == ____ + assert str1[1:-1] == "ython anywher" def test_slice_end_of_string(): @@ -63,7 +63,7 @@ def test_slice_end_of_string(): str1 = "Python anywhere" - assert str1[3:] == ___ + assert str1[3:] == "hon anywhere" def test_slice_beginning_of_string(): @@ -74,7 +74,7 @@ def test_slice_beginning_of_string(): str1 = "Python anywhere" - assert str1[:5] == ___ + assert str1[:5] == "Pytho" def test_slice_with_equal_substring(): @@ -84,7 +84,7 @@ def test_slice_with_equal_substring(): str1 = "Python anywhere" - assert str1[:] == ___ + assert str1[:] == "Python anywhere" def test_slice_with_step(): @@ -97,7 +97,7 @@ def test_slice_with_step(): str1 = "Python anywhere" - assert str1[1:9:2] == ___ + assert str1[1:9:2] == "yhna" def test_slice_string_backwards(): @@ -107,4 +107,4 @@ def test_slice_string_backwards(): str1 = "Python anywhere" - assert str1[::-1] == ___ + assert str1[::-1] == "erehwyna nohtyP"