forked from tdwojak/Python2018
zrobiono zadanie 9
This commit is contained in:
parent
513808064f
commit
586ba304cf
@ -9,7 +9,13 @@ Np. leet('leet') powinno zwrócić '1337'.
|
|||||||
|
|
||||||
|
|
||||||
def leet_speak(text):
|
def leet_speak(text):
|
||||||
pass
|
text = str(text)
|
||||||
|
text = text.replace("e","3") # zamienia "e" na "3"
|
||||||
|
text = text.replace("l","1") # "l" na "1"
|
||||||
|
text = text.replace("o","0") # "o" na "0"
|
||||||
|
text = text.replace("t","7") # "t" na "7"
|
||||||
|
|
||||||
|
return text
|
||||||
|
|
||||||
|
|
||||||
def tests(f):
|
def tests(f):
|
||||||
|
Loading…
Reference in New Issue
Block a user