From b3e6b03710fea10b7e9b4cbcaabfed064b6603c9 Mon Sep 17 00:00:00 2001 From: s45150 Date: Fri, 1 Dec 2017 17:52:46 +0100 Subject: [PATCH] commited tasks --- labs02/task10.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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