7 lines
182 B
Python
7 lines
182 B
Python
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)
|