passed
This commit is contained in:
parent
96214d2d3f
commit
bac748992f
@ -9,10 +9,15 @@ Np. leet('leet') powinno zwrócić '1337'.
|
|||||||
|
|
||||||
|
|
||||||
def leet_speak(text):
|
def leet_speak(text):
|
||||||
for i in text :
|
if 'e' in text :
|
||||||
if i == "e" :
|
text = text.replace("e", "3")
|
||||||
|
if "l" in text :
|
||||||
|
text = text.replace("l", "1")
|
||||||
|
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):
|
||||||
inputs = [['leet'], ['do not want']]
|
inputs = [['leet'], ['do not want']]
|
||||||
|
Loading…
Reference in New Issue
Block a user