1
0
forked from tdwojak/Python2017
This commit is contained in:
s45147 2017-11-20 10:11:11 +01:00
parent b52078b610
commit 70554cf013

View File

@ -9,8 +9,16 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
def pokemon_speak(text):
pass
wynik = ''
switch = 1
for znak in text:
if switch == 1:
wynik += znak.upper()
switch *= -1
else:
wynik += znak
switch *= -1
return wynik
def tests(f):
inputs = [['pokemon'], ['do not want'], ['POKEMON']]