forked from tdwojak/Python2017
Done
This commit is contained in:
parent
9155f1e9ae
commit
b6a0c7978c
@ -9,7 +9,11 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
|
|||||||
|
|
||||||
|
|
||||||
def pokemon_speak(text):
|
def pokemon_speak(text):
|
||||||
pass
|
text = list(text)
|
||||||
|
for i, ele in enumerate(text):
|
||||||
|
if i % 2:
|
||||||
|
text[i] = ele.upper()
|
||||||
|
return ("".join(text))
|
||||||
|
|
||||||
|
|
||||||
def tests(f):
|
def tests(f):
|
||||||
|
Loading…
Reference in New Issue
Block a user