diff --git a/labs02/task09.py b/labs02/task09.py index 9045054..2f429b2 100644 --- a/labs02/task09.py +++ b/labs02/task09.py @@ -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): diff --git a/labs02/task10.py b/labs02/task10.py index 58d40d2..d2bbb70 100644 --- a/labs02/task10.py +++ b/labs02/task10.py @@ -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):