zjfz-2019-s402281/intro/Task108.py

15 lines
277 B
Python
Raw Normal View History

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