done
This commit is contained in:
parent
c941f0f6ac
commit
b52078b610
@ -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']]
|
||||
|
Loading…
Reference in New Issue
Block a user