1
0
forked from tdwojak/Python2017

commited tasks

This commit is contained in:
s45150 2017-12-01 17:52:46 +01:00
parent fe8c5810e4
commit b3e6b03710

View File

@ -10,12 +10,10 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
def pokemon_speak(text): def pokemon_speak(text):
#spacja Asci 32 #spacja Asci 32
text_tmp = str(text)
text_tmp = text_tmp.replace('[', '')
text_tmp = text_tmp.replace(']', '')
text_tmp = text_tmp.replace("'", '')
lista_temp = "" lista_temp = ""
j = 1 j = 1
for i in text: for i in text:
if ord(i) == 32: if ord(i) == 32:
j=1 j=1