diff --git a/labs02/task10.py b/labs02/task10.py index 58d40d2..2dcfcb1 100644 --- a/labs02/task10.py +++ b/labs02/task10.py @@ -9,8 +9,12 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'. def pokemon_speak(text): - pass + + for i in range(len(text)): + if ((i % 2) == 0): + text = text[:i] + (text[i].upper()) + text[i + 1:] + return text def tests(f): inputs = [['pokemon'], ['do not want'], ['POKEMON']]