Zaktualizuj 'labs02/task10.py'

This commit is contained in:
Miłosz Maliszewski 2018-06-13 17:39:27 +00:00
parent af30735b0d
commit 4be2ec1074

View File

@ -9,7 +9,15 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
def pokemon_speak(text):
pass
listy = []
for i in range(len(text)):
if i % 2 == 0:
listy.append(text[i].upper())
else:
listy.append(text[i])
return ''.join(listy)
def tests(f):