An example of the bigwords
accumulation
from the chapter:
def bigwords(sentence): |
Accum = [] |
for word in sentence.split(): |
if len(word)>8 and word not in Accum: |
Accum.append(word) |
return Accum |
T = "automation and computation may collaborate" |
print bigwords(T) |