forked from tdwojak/Python2018
passed
This commit is contained in:
parent
fd1d22ef4d
commit
6d503b377c
@ -9,7 +9,9 @@ Np. leet('leet') powinno zwrócić '1337'.
|
||||
|
||||
|
||||
def leet_speak(text):
|
||||
pass
|
||||
for i in text :
|
||||
if i == "e" :
|
||||
|
||||
|
||||
|
||||
def tests(f):
|
||||
|
@ -9,7 +9,13 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
|
||||
|
||||
|
||||
def pokemon_speak(text):
|
||||
pass
|
||||
if text[:].isupper() == True :
|
||||
return(text)
|
||||
else :
|
||||
R = [''] * len(text)
|
||||
R[::2], R[1::2] = text[::2].upper(), text[1::2].lower()
|
||||
R = ''.join(R)
|
||||
return(R)
|
||||
|
||||
|
||||
def tests(f):
|
||||
|
Loading…
Reference in New Issue
Block a user