words = ['apple', 'banana', 'fig'] total = 0 for w in words: total += len(w) print(total)