1
0
forked from tdwojak/Python2017
This commit is contained in:
s45159 2017-11-30 10:18:30 +01:00
parent 9ef7fa16a0
commit 6b9900253d

View File

@ -10,7 +10,7 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
def pokemon_speak(text):
text = list(text)
for x in range(2, len(text),2):
for x in range(0, len(text),2):
text[x] = text[x].upper()
x = ''.join(text)
return x
@ -18,7 +18,7 @@ def pokemon_speak(text):
def tests(f):
inputs = [['pokemon'], ['do not want'], 'POKEMON']
inputs = [['pokemon'], ['do not want'], ['POKEMON']]
outputs = ['PoKeMoN', 'Do nOt wAnT', 'POKEMON']
for input, output in zip(inputs, outputs):