1
0
forked from tdwojak/Python2017
This commit is contained in:
s45147 2017-11-20 09:56:26 +01:00
parent c941f0f6ac
commit b52078b610

View File

@ -9,8 +9,16 @@ Np. leet('leet') powinno zwrócić '1337'.
def leet_speak(text):
pass
slownik = {'e':3, 'l':1, 'o':0, 't':7}
dekod = ''
for znak in text:
if znak in slownik:
dekod += slownik[znak]
else:
dekod += znak
return dekod
def tests(f):
inputs = [['leet'], ['do not want']]