diff --git a/labs02/task10.py b/labs02/task10.py index 521ad8e..ed92a01 100644 --- a/labs02/task10.py +++ b/labs02/task10.py @@ -10,12 +10,10 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'. def pokemon_speak(text): #spacja Asci 32 - text_tmp = str(text) - text_tmp = text_tmp.replace('[', '') - text_tmp = text_tmp.replace(']', '') - text_tmp = text_tmp.replace("'", '') + lista_temp = "" j = 1 + for i in text: if ord(i) == 32: j=1