add task 108
This commit is contained in:
parent
601a4c9167
commit
9419fb1ffb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user