from functools import reduce words = ["Apfel", "Banane", "Kirsche", "Kiwi", "Melone"] result = sum(map(lambda x : len(x) , filter(lambda x : x[0][0] == "K", words))) print(result)