forked from tdwojak/Python2017
update test task
Signed-off-by: s45167 <krzysztof.spalinski@op.pl>
This commit is contained in:
parent
13f39cfb9c
commit
2fbb58c328
@ -9,6 +9,15 @@ Np. leet('leet') powinno zwrócić '1337'.
|
|||||||
|
|
||||||
|
|
||||||
def leet_speak(text):
|
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
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user