in this case are things of zero length
len('')
0
In [8]
# Making new list with no empty words in it
cleaned_list...(word)
In [10]
cleaned_list[0:20]
['On',
'a',
'dark',
'desert',
'highway',
'cool',
'wind',
'in...= []
for word in text.split(' '):
if word == '':
continue
cleaned_list.append(word...)
cleaned_list[1:20]
['a',
'dark',
'desert',
'highway',
'cool',
'wind',
'in',
'my',
'hair',...(word)
cleaned_list
I found the word I was looking for
['On', 'a', 'dark']
Task (顺道介绍一下Range函数)
编写一个Python