Alle Aufgaben inklusive Hausaufgaben
This commit is contained in:
1 parent
782b1850a3
commit
d3389992aa
18 files changed
+5
-59
No files matched your search
@@ -0,0 +1,5 @@
|
||||
words = ["Apfel", "Banane", "Kirsche", "Kiwi", "Melone"] #summe der Wortlänge, die mit k beginnen
|
||||
#summe= sum(len(word) for word in words if word.startwith("K"))
|
||||
#print(summe)
|
||||
|
||||
summe = filter(lambda word: str.startswith("K"), words, )
|
||||
Reference in new issue
Block a user