1
0
forked from tdwojak/Python2017

update test task

Signed-off-by: s45167 <krzysztof.spalinski@op.pl>
This commit is contained in:
s45167 2017-11-30 21:59:35 +01:00
parent 13f39cfb9c
commit 2fbb58c328

View File

@ -9,6 +9,15 @@ Np. leet('leet') powinno zwrócić '1337'.
def leet_speak(text):
tekst = ""
slownik = {"e": "3", "l": "1", "o": "0", "t": "7"}
for i in text:
if i in slownik:
tekst += slownik[i]
else:
tekst += i
return tekst
pass