Pyton test
This commit is contained in:
parent
beab89219d
commit
3bc5d62f70
1 changed files with 7 additions and 1 deletions
8
hallo.py
8
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.")
|
||||
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!")
|
||||
Loading…
Reference in a new issue