def split_to_words sentense words word for symbol in sentense if symbo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
def split_to_words(sentense):
words = []
word = ''
for symbol in sentense:
if symbol != ' ':
word = word + symbol
else:
words.append(word)
word = ''
words.append(word)
return words
zapros1 = 'ya hoshu svoy ghghgh nastyu qdqdqd fwefwef'
result_words = split_to_words(zapros1)
print result_words[2:5]