From 3a5c11a1c8a2d1e0f94c9ae9c732740f88b4bcd2 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 15 Jul 2024 15:30:36 +0100 Subject: test character at end of word --- challenge-278/steven-wilson/python/ch-2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/challenge-278/steven-wilson/python/ch-2.py b/challenge-278/steven-wilson/python/ch-2.py index 2c6f1e5423..8cec33da3f 100644 --- a/challenge-278/steven-wilson/python/ch-2.py +++ b/challenge-278/steven-wilson/python/ch-2.py @@ -12,6 +12,8 @@ def reverse_word(word, char): 'agoprrmming' >>> reverse_word("champion", "b") 'champion' + >>> reverse_word("champion", "n") + 'achimnop' """ position = word.find(char) -- cgit