311.csv #1
@ -9,7 +9,15 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
|
|||||||
|
|
||||||
|
|
||||||
def pokemon_speak(text):
|
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):
|
def tests(f):
|
||||||
|
Loading…
Reference in New Issue
Block a user