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 -*- # -*- coding: utf-8 -*-
"""Rozwiązanie zadania 107.""" """Rozwiązanie zadania 108"""
def pokemon_speak(string): def pokemon_speak(string):
"upper case" "upper case"
@ -8,7 +8,9 @@ def pokemon_speak(string):
result = '' result = ''
for char in string: for char in string:
if index % 2 == 0: if index % 2 == 0:
index += 1
result += char.upper() result += char.upper()
else: else:
result += char result += char
index += 1
return result return result