some new things, mostly not working or finished

This commit is contained in:
2025-11-08 18:16:10 +01:00
parent 5792bfbd9a
commit 795fb42900
30 changed files with 4789 additions and 1 deletions

18
functions/summe.py Normal file
View File

@@ -0,0 +1,18 @@
def summe(n) -> float:
lst = []
for i in range(1,n):
lst.append(i)
formatted = " + ".join(str(x) for x in lst)
print(f"summe = {formatted} ; sum = {total(lst)}")
def total(lst: list) -> float:
total = None
for i in lst:
i += total
if total:
return total
else:
return None
summe(10)