1
0
forked from tdwojak/Python2017

commited tasks

This commit is contained in:
s45150 2017-11-25 16:19:19 +01:00
parent 2e77b2ed58
commit 49ade33e4b

View File

@ -9,8 +9,19 @@ Np. leet('leet') powinno zwrócić '1337'.
def leet_speak(text): def leet_speak(text):
pass lista_temp = []
for i in text:
if i =='e':
lista_temp +=3
elif i =='l':
lista_temp +=1
elif i =='o':
lista_temp +=0
elif i =='t':
lista_temp +=7
else:
lista_temp += i
return lista_temp
def tests(f): def tests(f):
inputs = [['leet'], ['do not want']] inputs = [['leet'], ['do not want']]