From 3bc5d62f70ea8f40973d7ebc76920cdd6615d7d2 Mon Sep 17 00:00:00 2001 From: Lena Date: Wed, 17 Jun 2026 15:09:16 +0200 Subject: [PATCH] Pyton test --- hallo.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hallo.py b/hallo.py index 6524585..b804a3d 100644 --- a/hallo.py +++ b/hallo.py @@ -3,4 +3,10 @@ print(3+5) name=input("Wie heißt du?") alter=input("Wie alt bist du") -print(f"Ich heiße {name} und bin {alter} Jahre alt.") \ No newline at end of file +print(f"Ich heiße {name} und bin {alter} Jahre alt.") + +if alter >= 18: + print("Du bist offiziell aus den Jugendstrafrecht raus, außer die Richterin hat erbarmen") + +else: + print("Glück jehabt! Du bist nicht vollständig strafmündig!") \ No newline at end of file