1
0
forked from tdwojak/Python2017

task09 passed

This commit is contained in:
Ewelina 2017-11-27 20:42:03 +01:00
parent 3f9c87d72a
commit cd3004f071

View File

@ -9,7 +9,17 @@ Np. leet('leet') powinno zwrócić '1337'.
def leet_speak(text): def leet_speak(text):
pass if 'l' in text:
text = text.replace('l', '1')
if 'e' in text:
text = text.replace('e', '3')
if 'o' in text:
text = text.replace('o', '0')
if 't' in text:
text = text.replace('t', '7')
return (text)
def tests(f): def tests(f):