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