forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
fe8c5810e4
commit
b3e6b03710
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user