Aufgaben aus dem Praktikum 4

This commit is contained in:
naimabannert committed 2026-11-05 11:31:32 +01:00
commit d0300ed30f
9 files changed
+287

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
words = ["Apfel", "Banane", "Kirsche", "Kiwi", "Melone"]
r = sum(map(lambda word: len(word), filter(lambda word: word.startswith("K"),words)))
print(r)