forked from tdwojak/Python2017
update test task
Signed-off-by: s45167 <krzysztof.spalinski@op.pl>
This commit is contained in:
parent
84a295a7cd
commit
f5aa1671bb
@ -7,10 +7,16 @@ Napisz funkcję pokemon_speak, która zamienia w podanym napisie co drugą liter
|
||||
na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
|
||||
"""
|
||||
|
||||
## NIE WIEM CZEMU ŹLE??
|
||||
|
||||
def pokemon_speak(text):
|
||||
pass
|
||||
|
||||
s = ''
|
||||
for i in range(len(text)):
|
||||
if i % 2 == 0:
|
||||
s += text[i].upper()
|
||||
else:
|
||||
s += text[i]
|
||||
return s
|
||||
|
||||
def tests(f):
|
||||
inputs = [['pokemon'], ['do not want'], 'POKEMON']
|
||||
|
Loading…
Reference in New Issue
Block a user