From 6d503b377cabc9585e946010a6d6f670c03a9230 Mon Sep 17 00:00:00 2001 From: "wagner.agnieszka" Date: Fri, 1 Jun 2018 18:38:11 +0200 Subject: [PATCH] passed --- labs02/task09.py | 4 +++- labs02/task10.py | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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):