From e225ee691a2faa5b8cc506781429b02a3809d145 Mon Sep 17 00:00:00 2001 From: Mikaszaaa Date: Wed, 30 May 2018 10:56:59 +0200 Subject: [PATCH] zadanie 9 --- labs02/task09.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/labs02/task09.py b/labs02/task09.py index 9045054..b8be093 100644 --- a/labs02/task09.py +++ b/labs02/task09.py @@ -9,7 +9,11 @@ Np. leet('leet') powinno zwrócić '1337'. def leet_speak(text): - pass + slownik = {'e' : '3', 'l' : '1', 'o': '0', 't' : '7'} + for i in text: + if i in slownik: + text = text.replace(i, slownik[i]) + return text def tests(f):