task09 passed
This commit is contained in:
parent
3f9c87d72a
commit
cd3004f071
@ -9,7 +9,17 @@ Np. leet('leet') powinno zwrócić '1337'.
|
||||
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user