school/bedingungen/altersgruppen_kategorisierung.py
2025-03-21 21:05:12 +01:00

12 lines
267 B
Python

alter = int(input("Ihr Alter: "));
if alter <= 12:
print("Kind");
elif alter >= 13 and alter <= 17:
print("Teenager");
elif alter >= 18 and alter <= 64:
print("Erwachsener");
elif alter >= 65:
print("Senior");
elif alter <= 0:
print("Zu Jung!");