forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
2e77b2ed58
commit
49ade33e4b
@ -9,8 +9,19 @@ Np. leet('leet') powinno zwrócić '1337'.
|
||||
|
||||
|
||||
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):
|
||||
inputs = [['leet'], ['do not want']]
|
||||
|
Loading…
Reference in New Issue
Block a user