0
0
Fork 0

zrobiono zadanie 9

This commit is contained in:
Michał Jaskuła 2018-06-02 09:45:31 +00:00
parent 513808064f
commit 586ba304cf
1 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,13 @@ Np. leet('leet') powinno zwrócić '1337'.
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):