2020-01-12 13:11:00 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2020-01-12 15:34:14 +01:00
|
|
|
"""Rozwiązanie zadania 108"""
|
2020-01-12 13:11:00 +01:00
|
|
|
|
|
|
|
def pokemon_speak(string):
|
|
|
|
"upper case"
|
|
|
|
index = 0
|
|
|
|
result = ''
|
|
|
|
for char in string:
|
|
|
|
if index % 2 == 0:
|
2020-01-12 15:34:14 +01:00
|
|
|
index += 1
|
2020-01-12 13:11:00 +01:00
|
|
|
result += char.upper()
|
|
|
|
else:
|
|
|
|
result += char
|
2020-01-12 15:34:14 +01:00
|
|
|
index += 1
|
2020-01-12 13:11:00 +01:00
|
|
|
return result
|