From af30735b0d656370d3f26a447ec7973a67d6818b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Maliszewski?= Date: Wed, 13 Jun 2018 17:38:46 +0000 Subject: [PATCH] Zaktualizuj 'labs02/task09.py' --- labs02/task09.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/labs02/task09.py b/labs02/task09.py index 9045054..c07d63c 100644 --- a/labs02/task09.py +++ b/labs02/task09.py @@ -9,7 +9,8 @@ Np. leet('leet') powinno zwrócić '1337'. def leet_speak(text): - pass + return tekst.replace('o', '0').replace('l', '1').replace('e', '3').replace('t', '7') + def tests(f): @@ -23,4 +24,4 @@ def tests(f): return "TESTS PASSED" if __name__ == "__main__": - print(tests(leet_speak)) + print(tests(leet_speak)) \ No newline at end of file