1
0
forked from tdwojak/Python2018

zadanie 9

This commit is contained in:
Mikaszaaa 2018-05-30 10:56:59 +02:00
parent d032993997
commit e225ee691a

View File

@ -9,7 +9,11 @@ Np. leet('leet') powinno zwrócić '1337'.
def leet_speak(text): 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): def tests(f):