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