17 lines
322 B
Python
17 lines
322 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""Rozwiązanie zadania 108"""
|
|
|
|
def pokemon_speak(string):
|
|
"upper case"
|
|
index = 0
|
|
result = ''
|
|
for char in string:
|
|
if index % 2 == 0:
|
|
index += 1
|
|
result += char.upper()
|
|
else:
|
|
result += char
|
|
index += 1
|
|
return result
|