Aufgaben ergänzt inklusive Hausaufgabe

This commit is contained in:
Amalia Sucipto committed 2026-11-12 15:28:58 +01:00
1 parent 57f043f977
commit 3a0ecb91a3
6 files changed
+108

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
def run_once(f):
already_run = False
def wrapper(*args, **kwargs):
nonlocal already_run
if not already_run:
already_run = True
f(*args, **kwargs)
pass
return wrapper
@run_once
def begruessung(name):
print(f"Hallo {name}!")
begruessung("Sophia")
begruessung("Max")
begruessung("Lisa")