1
0
forked from tdwojak/Python2017

Moje rozwiązanie

Signed-off-by: s45167 <krzysztof.spalinski@op.pl>
This commit is contained in:
s45167 2017-11-30 22:57:42 +01:00
parent 169b197614
commit 07e4742f4a

View File

@ -10,13 +10,13 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
## NIE WIEM CZEMU ŹLE??
def pokemon_speak(text):
s = ''
a = ''
for i in range(len(text)):
if i % 2 == 0:
s += text[i].upper()
a += text[i].upper()
else:
s += text[i]
return s
a += text[i]
return a
def tests(f):
inputs = [['pokemon'], ['do not want'], 'POKEMON']