From 9419fb1ffba53053090a0c6823e53878f9cb43c3 Mon Sep 17 00:00:00 2001 From: Grzegorz Rogozik Date: Sun, 12 Jan 2020 15:34:14 +0100 Subject: [PATCH] add task 108 --- intro/Task108.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intro/Task108.py b/intro/Task108.py index 267ae83..a43e43c 100644 --- a/intro/Task108.py +++ b/intro/Task108.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -"""Rozwiązanie zadania 107.""" +"""Rozwiązanie zadania 108""" def pokemon_speak(string): "upper case" @@ -8,7 +8,9 @@ def pokemon_speak(string): result = '' for char in string: if index % 2 == 0: + index += 1 result += char.upper() else: result += char + index += 1 return result