forked from tdwojak/Python2018
zadanie 9
This commit is contained in:
parent
d032993997
commit
e225ee691a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user