Files

4 lines
153 B
Python

words = ["Apfel", "Banane", "Kirsche", "Kiwi", "Melone"]
r = sum(map(lambda word: len(word), filter(lambda word: word.startswith("K"),words)))
print(r)