add task 108

This commit is contained in:
Grzegorz Rogozik 2020-01-12 15:34:14 +01:00
parent 601a4c9167
commit 9419fb1ffb

View File

@ -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